instance_id
stringlengths
10
57
file_changes
listlengths
1
15
repo
stringlengths
7
53
base_commit
stringlengths
40
40
problem_statement
stringlengths
11
52.5k
patch
stringlengths
251
7.06M
gorakhargosh__watchdog-747
[ { "changes": { "added_entities": [ "src/watchdog/events.py:FileSystemEventHandler.on_closed" ], "added_modules": [ "src/watchdog/events.py:FileClosedEvent" ], "edited_entities": [ "src/watchdog/events.py:FileSystemEventHandler.dispatch" ], "edite...
gorakhargosh/watchdog
847a059ae717424baea81a949c7726fc3520bb8a
Modifed event triggered twice if I copy and paste a file on OSX lion it triggered created event once and modified event twice should it be just trigger once modified event? ` INFO:root:Created file: /Users/ouyangjichao/BoxSync/rename/testwatchdog.py INFO:root:Modified file: /Users/ouyangjichao/BoxSync/rename/testwatch...
diff --git a/changelog.rst b/changelog.rst index 167f5cb..52943e5 100644 --- a/changelog.rst +++ b/changelog.rst @@ -9,7 +9,8 @@ Changelog 202x-xx-xx • `full history <https://github.com/gorakhargosh/watchdog/compare/v1.0.2...master>`__ - Avoid deprecated ``PyEval_InitThreads`` on Python 3.7+ (`#746 <https://github....
gorakhargosh__watchdog-760
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/watchdog/observers/inotify.py:InotifyEmitter.on_thread_stop", "src/watchdog/observers/inotify.py:InotifyEmitter.queue_events" ], "edited_modules": [ "src/watchdog/observe...
gorakhargosh/watchdog
72a254502960cd347555e593ef0694f31bc29d7e
Linux Bad File Descriptor when watched directory is removed Hello I tested watchdog on Linux (Ubuntu) and Windows (Win10). ### **Versions** **Linux::** ``` Python 3.6.9 watchdog-1.0.2 ``` **Windows** ``` Python 3.7.9 watchdog-1.0.2 ``` ### **Test scenario is as below:** 1. Create directory X 2. Wat...
diff --git a/changelog.rst b/changelog.rst index 61e2b48..b47c5d8 100644 --- a/changelog.rst +++ b/changelog.rst @@ -10,6 +10,7 @@ Changelog - Avoid deprecated ``PyEval_InitThreads`` on Python 3.7+ (`#746 <https://github.com/gorakhargosh/watchdog/pull/746>`_) - [inotify] Add support for ``IN_CLOSE_WRITE`` events. A...
gorakhargosh__watchdog-880
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/watchdog/watchmedo.py:command" ], "edited_modules": [ "src/watchdog/watchmedo.py:command" ] }, "file": "src/watchdog/watchmedo.py" } ]
gorakhargosh/watchdog
77e1f4668bc42b4a8706b181d882fd68c05ab8b9
Watchmedo.tricks_from broken after latest upgrade Hi, we upgraded to latest version of the package and our tools are now crashing when invoking watchmedo.tricks_from method. The exception: ``` File "C:\Program Files\JetBrains\PyCharm 2021.3.2\plugins\python\helpers\pydev\pydevd.py", line 1483, in _exec ...
diff --git a/changelog.rst b/changelog.rst index cfea69a..0b12e35 100644 --- a/changelog.rst +++ b/changelog.rst @@ -10,6 +10,7 @@ Changelog - Eliminate timeout in waiting on event queue. (`#861 <https://github.com/gorakhargosh/watchdog/pull/861>`_) - [inotify] Fix ``not`` equality implementation for ``InotifyEvent...
gorakhargosh__watchdog-886
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "src/watchdog/watchmedo.py" } ]
gorakhargosh/watchdog
e57ec02154075e25d59ee09c392c94065e12c52d
watchmedo - argparse for --kill-after needs to be a float If you set --kill-after argument on watchmedo then it will fail as the argparse configuration is not set to a float. It needs to be: ``` argument('--kill-after', dest='kill_after', default=10.0, ...
diff --git a/changelog.rst b/changelog.rst index ffc8fb0..900a55d 100644 --- a/changelog.rst +++ b/changelog.rst @@ -8,8 +8,8 @@ Changelog 2022-xx-xx • `full history <https://github.com/gorakhargosh/watchdog/compare/v2.1.7...master>`__ -- -- Thanks to our beloved contributors: @ +- [watchmedo] Fix broken parsing ...
gorakhargosh__watchdog-889
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "src/watchdog/tricks/__init__.py:LoggerTrick", "src/watchdog/tricks/__init__.py:AutoRestartTrick" ] }, "file": "src/watchdog/tricks/__init__.py" }, ...
gorakhargosh/watchdog
4baea3649a0ff86a499a50d37d530a5b147ee029
Suppress watchmedo on_any_event log messages When using watchmedo auto-restart how can I suppress all the event messages logged to the console? It's noise I do not want to see. Thanks. Eg: ```shell $ watchmedo auto-restart test.sh on_any_event(self=<watchdog.tricks.AutoRestartTrick object at 0xb634ab30>, even...
diff --git a/changelog.rst b/changelog.rst index 33f8edb..71765ad 100644 --- a/changelog.rst +++ b/changelog.rst @@ -13,6 +13,7 @@ Changelog - [watchmedo] Fix broken parsing of boolean arguments. (`#855 <https://github.com/gorakhargosh/watchdog/issues/855>`_) - [watchmedo] Fix broken parsing of commands from ``auto-r...
gorakhargosh__watchdog-897
[ { "changes": { "added_entities": [ "src/watchdog/tricks/__init__.py:ShellCommandTrick.is_process_running" ], "added_modules": null, "edited_entities": [ "src/watchdog/tricks/__init__.py:ShellCommandTrick.on_any_event", "src/watchdog/tricks/__init__.py:ShellCommand...
gorakhargosh/watchdog
fa806f1bdd838de1ebf42916e9f5e21b8688d8e2
Without `--wait`, shell subprocesses can deadlock / are not reaped For example: ``` watchmedo shell-command -c 'cat' /some/file ``` The relevant code: ``` self.process = subprocess.Popen(command, shell=True) if self.wait_for_process: ...
diff --git a/changelog.rst b/changelog.rst index 747645c..7549fec 100644 --- a/changelog.rst +++ b/changelog.rst @@ -9,7 +9,8 @@ Unreleased 2022-xx-xx • `full history <https://github.com/gorakhargosh/watchdog/compare/v2.1.8...HEAD>`__ - [fsevents] Fix flakey test to assert that there are no errors when stopping the...
gotcha__ipdb-224
[ { "changes": { "added_entities": [ "ipdb/__main__.py:_get_debugger_cls" ], "added_modules": [ "ipdb/__main__.py:_get_debugger_cls" ], "edited_entities": [ "ipdb/__main__.py:_init_pdb" ], "edited_modules": [ "ipdb/__main__.py:_init_pdb" ...
gotcha/ipdb
5bb1e869d7b01ca6f5891d297ae66907614ee67a
Importing ipdb initializes IPython Currently, merely importing `ipdb` causes it to initialize IPython. In turn, among other things, IPython installs its excepthook. Therefore on programs that import `ipdb`, the default exception behaviour is already wrapped with IPython's, even when both ipdb and IPython aren't run. ...
diff --git a/ipdb/__main__.py b/ipdb/__main__.py index 8792b73..52e26e3 100644 --- a/ipdb/__main__.py +++ b/ipdb/__main__.py @@ -22,34 +22,36 @@ except: import ConfigParser as configparser -shell = get_ipython() -if shell is None: - # Not inside IPython - # Build a terminal app in order to force ipython ...
gotcha__ipdb-226
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "ipdb/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": ...
gotcha/ipdb
6694611c9417a9afc28c86f5ffe546d4397c95a7
Support launch_ipdb_on_exception as a function decorator For some time I have used this in my personal debug tools: ```python import ipdb class Decontext(object): """ Makes a context manager also act as decorator """ def __init__(self, context_manager): self._cm = context_manager ...
diff --git a/HISTORY.txt b/HISTORY.txt index 1d45eba..7bd94f2 100644 --- a/HISTORY.txt +++ b/HISTORY.txt @@ -4,7 +4,8 @@ Changelog 0.13.8 (unreleased) ------------------- -- Nothing changed yet. +- Add the convenience function ``iex()``. + [alanbernstein] 0.13.7 (2021-03-16) diff --git a/README.rst b/README.r...
gouline__dbt-metabase-158
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dbtmetabase/parsers/dbt_manifest.py:DbtManifestReader._read_model" ], "edited_modules": [ "dbtmetabase/parsers/dbt_manifest.py:DbtManifestReader" ] }, "file": "dbtmetab...
gouline/dbt-metabase
1b8af327f46bf34c3f79d6c1890e6ce0d226c46c
Relationship tests read incorrectly to determine fk_target_table The tool appears to read all relationship tests, both outgoing (the fk_target_table is a model **not** currently being read), as well as incoming (the fk_target_table **is** the model currently being read). If table A is the table currently being read b...
diff --git a/dbtmetabase/parsers/dbt_manifest.py b/dbtmetabase/parsers/dbt_manifest.py index 0a1ca00..3ea7dd6 100644 --- a/dbtmetabase/parsers/dbt_manifest.py +++ b/dbtmetabase/parsers/dbt_manifest.py @@ -202,6 +202,16 @@ class DbtManifestReader(DbtReader): ) continue + ...
gouline__dbt-metabase-224
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dbtmetabase/_exposures.py:ExposuresMixin.__extract_card_exposures" ], "edited_modules": [ "dbtmetabase/_exposures.py:ExposuresMixin" ] }, "file": "dbtmetabase/_exposure...
gouline/dbt-metabase
2f8c88dedc76fc1001aeb95bfdc1914c45ca5999
Exposures command fails. dbtmetabase/_exposures.py; Function: __extract_card_exposures(); dbt-metabase: 1.0.1 When I run `dbt-metabase exposures` I get the following error: ```bash Traceback (most recent call last): File "/pypoetry/virtualenvs/dbt-yDNzCqHh-py3.10/bin/dbt-metabase", line 8, in <module> sys.e...
diff --git a/dbtmetabase/_exposures.py b/dbtmetabase/_exposures.py index c42c05a..65d33b8 100644 --- a/dbtmetabase/_exposures.py +++ b/dbtmetabase/_exposures.py @@ -196,7 +196,7 @@ class ExposuresMixin(metaclass=ABCMeta): depends += self.__extract_card_exposures( ctx, ...
gouline__dbt-metabase-233
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dbtmetabase/format.py:Filter.match" ], "edited_modules": [ "dbtmetabase/format.py:Filter" ] }, "file": "dbtmetabase/format.py" } ]
gouline/dbt-metabase
d9f50dc0bdcf26fe52cf88de4075664cf310bdad
Add wildcard syntax to table filters Certain models - such as staging tables - might not be a part of Metabase's table definitions. As opposed to having to specify all includes or excludes, `dbtmetabase` should allow you to define a wildcard to exclude them, i.e. ```python c.export_models( meta...
diff --git a/Makefile b/Makefile index ee21a27..068fca0 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ sandbox-models: --metabase-username $$MB_USER \ --metabase-password $$MB_PASSWORD \ --metabase-database $$POSTGRES_DB \ - --include-schemas "public",other \ + --include-schemas "pub*",other \ --h...
gouline__dbt-metabase-234
[ { "changes": { "added_entities": [ "dbtmetabase/manifest.py:Manifest._set_column_relationship" ], "added_modules": null, "edited_entities": [ "dbtmetabase/manifest.py:Manifest._read_column", "dbtmetabase/manifest.py:Manifest._set_column_fk" ], "edited_...
gouline/dbt-metabase
d8788cc994f64730bb2e5f6c7818b5cd9f86c756
Add support for constraints [constraints](https://docs.getdbt.com/reference/resource-properties/constraints) seem to be the modern way to define relationships in dbt. Plugins such as [dbt_constraints](https://hub.getdbt.com/Snowflake-Labs/dbt_constraints/latest/) make use of this metadata. Should `dbt-metabase` also su...
diff --git a/dbtmetabase/manifest.py b/dbtmetabase/manifest.py index 14a0b94..014ef03 100644 --- a/dbtmetabase/manifest.py +++ b/dbtmetabase/manifest.py @@ -3,6 +3,7 @@ from __future__ import annotations import dataclasses as dc import json import logging +import re from enum import Enum from pathlib import Path ...
gouline__dbt-metabase-271
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dbtmetabase/__main__.py:_add_setup", "dbtmetabase/__main__.py:exposures" ], "edited_modules": [ "dbtmetabase/__main__.py:_add_setup", "dbtmetabase/__main__.py:exposur...
gouline/dbt-metabase
8647627922fc52f91dc6781661e6b6e07b9b3f15
Add tag to exported exposures It would be very useful to have the possibility of passing one (or more) tags as a parameter so that they can be placed within the exposures. ``` dbt-metabase exposures \ --manifest-path target/manifest.json \ --metabase-url https://metabase.example.com \ --metabase-api-...
diff --git a/Makefile b/Makefile index 1fb21a2..a7126aa 100644 --- a/Makefile +++ b/Makefile @@ -94,6 +94,7 @@ sandbox-exposures: --metabase-password $$MB_PASSWORD \ --output-path sandbox/models/exposures \ --output-grouping collection \ + --tag metabase \ --verbose ) ( . sandbox/.env && cd sandbox &&...
gouline__dbt-metabase-284
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dbtmetabase/_exposures.py:ExposuresMixin.extract_exposures", "dbtmetabase/_exposures.py:ExposuresMixin.__format_exposure" ], "edited_modules": [ "dbtmetabase/_exposures.py:Ex...
gouline/dbt-metabase
78e813302fe7c25d7e16d99d928ee12cccaf7fe7
Additional metadata to understand "usability" of a card Hi there, I'm a big fan of `dbt-metabase`! Especially the `exposures` feature has been a complete game changer to avoid deploying model changes that would break metabase cards. With a growing number of cards in Metabase, my team figured that it's not only im...
diff --git a/dbtmetabase/_exposures.py b/dbtmetabase/_exposures.py index 610cf16..3c5d9aa 100644 --- a/dbtmetabase/_exposures.py +++ b/dbtmetabase/_exposures.py @@ -112,6 +112,8 @@ class ExposuresMixin(metaclass=ABCMeta): depends = set() native_query = "" header = "" +...
gpauloski__3pseatBot-27
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "threepseat/commands/commands.py:admin_or_owner" ], "edited_modules": [ "threepseat/commands/commands.py:admin_or_owner" ] }, "file": "threepseat/commands/commands.py" ...
gpauloski/3pseatBot
0387011622b28b39771db2fe4fb2fc821255436e
`admin_or_owner` is not working for owner part. ### Describe the problem. Admins can run commands decorated with `@app_commands.check(admin_or_owner)` but it does not work for the bot owner that is not an admin in that guild. Maybe the interaction client is not a bot? https://github.com/gpauloski/3pseatBot/blob/0...
diff --git a/threepseat/commands/commands.py b/threepseat/commands/commands.py index ec712f7..2b14d02 100644 --- a/threepseat/commands/commands.py +++ b/threepseat/commands/commands.py @@ -94,10 +94,10 @@ async def admin_or_owner(interaction: discord.Interaction) -> bool: >>> @app_commands.check(admin_or_owner...
gpauloski__3pseatBot-66
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "threepseat/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "threepseat/ex...
gpauloski/3pseatBot
720b686740b30b640f1bdabb170616e1e196c961
Rules cooldown begins at start of last event ### Describe the problem. The cooldown should start from the end of the last event. ### (Optional) How did you install and run 3pseatBot? _No response_ ### (Optional) What version of 3pseatBot are you using? _No response_
diff --git a/setup.cfg b/setup.cfg index 1efa137..370272a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = threepseat -version = 2.1.4 +version = 2.1.5 description = 3pseatBot: a Discord Bot long_description = file: README.md long_description_content_type = text/markdown diff --git a/threep...
gpauloski__3pseatBot-68
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "threepseat/__init__.py" }, { "changes": { "added_entities": [ "threepseat/ext/sounds/commands.py:SoundCommands.on_voice_state_update", ...
gpauloski/3pseatBot
3a318b412ddf4ec172e9d7dec928065a6003e72d
Play sounds on member voice channel join ### Describe the Request Members can register a sound to their account that will play when they join a voice channel in the guild. ``` /sounds register [name] # name should autocomplete ``` Adding a second table to the `SoundCommands` is probably the easiest way to a...
diff --git a/setup.cfg b/setup.cfg index 370272a..5677875 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = threepseat -version = 2.1.5 +version = 2.1.6 description = 3pseatBot: a Discord Bot long_description = file: README.md long_description_content_type = text/markdown diff --git a/threep...
grabbles__grabbit-48
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "grabbit/__init__.py" }, { "changes": { "added_entities": [ "grabbit/core.py:File.entities", "grabbit/core.py:File.domains", ...
grabbles/grabbit
c1a811a2a41153afec970f73923c0a53c66ef694
would fail to work on bids datasets which have a directory starting with . somewhere in their paths Originally (https://github.com/datalad/datalad/issues/2150) I thought that the issue is symlinked directory somewhere in the path, so was trying to figure out where path `realpath`-ing is happening... long story short th...
diff --git a/grabbit/__init__.py b/grabbit/__init__.py index 35f4778..4d08018 100644 --- a/grabbit/__init__.py +++ b/grabbit/__init__.py @@ -1,10 +1,12 @@ -from .core import File, Entity, Layout, merge_layouts +from .core import File, Entity, Layout, Tag, Domain, merge_layouts from .extensions import (replace_entities...
grabbles__grabbit-49
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "grabbit/__init__.py" }, { "changes": { "added_entities": [ "grabbit/core.py:File.entities", "grabbit/core.py:File.domains", ...
grabbles/grabbit
c1a811a2a41153afec970f73923c0a53c66ef694
Hierarchical specifications Currently grabbit assumes that all folders/files below the project root obey the same spec. For a variety of reasons, it would be good to allow hierarchical specifications, so that on the initial scan, each folder would be checked for its own .json spec, and if one is found, the entities def...
diff --git a/grabbit/__init__.py b/grabbit/__init__.py index 35f4778..4d08018 100644 --- a/grabbit/__init__.py +++ b/grabbit/__init__.py @@ -1,10 +1,12 @@ -from .core import File, Entity, Layout, merge_layouts +from .core import File, Entity, Layout, Tag, Domain, merge_layouts from .extensions import (replace_entities...
grabbles__grabbit-54
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "grabbit/core.py:Domain.__init__", "grabbit/core.py:Layout.__init__", "grabbit/core.py:Layout._check_inclusions", "grabbit/core.py:Layout._get_domains_for_file", "grabbit/...
grabbles/grabbit
546ea88e8c04f263c2fecad2bc7314d59a5c0587
Enable coveralls
diff --git a/.coveragerc b/.coveragerc index a72e893..777a95e 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,5 +1,5 @@ [run] -source = - grabbit/ +include = grabbit/ omit = - */tests/* + */tests/* + */external/* diff --git a/.travis.yml b/.travis.yml index 57590d2..96455a0 100644 --- a/.travis.yml +++ b/.travis....
grabbles__grabbit-6
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "grabbit/core.py:Layout.get" ], "edited_modules": [ "grabbit/core.py:Layout" ] }, "file": "grabbit/core.py" } ]
grabbles/grabbit
afe361809ca5c040a46caa9f8a9bae017bcc706e
Redefining File class is confusing Returning File objects which are something different that python build in [file object](https://docs.python.org/3/glossary.html#term-file-object)
diff --git a/grabbit/core.py b/grabbit/core.py index 84009db..a2a87be 100644 --- a/grabbit/core.py +++ b/grabbit/core.py @@ -197,7 +197,7 @@ class Layout(object): return_type (str): Type of result to return. Valid values: 'tuple': returns a list of namedtuples containing file name as ...
grabbles__grabbit-60
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "grabbit/core.py:File.as_named_tuple" ], "edited_modules": [ "grabbit/core.py:File" ] }, "file": "grabbit/core.py" } ]
grabbles/grabbit
2d48a95f25c674ae64225d426722ac22b64f278b
Handle entity names that conflict with reserved keywords In cases where an `Entity` uses a reserved keyword as its name (e.g., `class`), exceptions can occur for some `.get()` queries (e.g., when `return_type='tuple'`, because reserved keywords can't be attributes). We need to find some workaround for this--e.g., setti...
diff --git a/grabbit/core.py b/grabbit/core.py index cdb0663..8c3c375 100644 --- a/grabbit/core.py +++ b/grabbit/core.py @@ -9,6 +9,7 @@ from os.path import (join, basename, dirname, abspath, split, isabs, exists) from functools import partial from copy import deepcopy import warnings +from keyword import iskeyword ...
grabbles__grabbit-63
[ { "changes": { "added_entities": [ "grabbit/core.py:Entity.match_file" ], "added_modules": null, "edited_entities": [ "grabbit/core.py:File._matches", "grabbit/core.py:File.copy", "grabbit/core.py:Domain.__init__", "grabbit/core.py:Entity.matches",...
grabbles/grabbit
3fe38c7e7eb510a38e6c2d072bdc913aaa1b7389
Domain root should default to directory containing config file It looks like if no root is specified in a directory-specific domain (or if `root == '.'`) then the root of that domain is set to the _global_ (`Layout`-level) root. I'm confused by this behavior. I'd have intuitively thought that the domain's root would b...
diff --git a/grabbit/core.py b/grabbit/core.py index 166f17c..4a4eaa3 100644 --- a/grabbit/core.py +++ b/grabbit/core.py @@ -5,11 +5,13 @@ from collections import defaultdict, OrderedDict, namedtuple from grabbit.external import six, inflect from grabbit.utils import natural_sort, listify from grabbit.extensions.wri...
gradio-app__gradio-1437
[ { "changes": { "added_entities": [ "gradio/blocks.py:Blocks.__call__", "gradio/blocks.py:Blocks.__str__", "gradio/blocks.py:Blocks.__repr__", "gradio/blocks.py:Blocks.preprocess_data", "gradio/blocks.py:Blocks.call_function", "gradio/blocks.py:Blocks.postpro...
gradio-app/gradio
74ccf3e957704f793ada88f4786633e847fc8a03
Gradio 3.0 cannot load interfaces from Gradio 2 ### Describe the bug Loading an interface of a Space that has <3 from a Space with Gradio 3.0 breaks ### Is there an existing issue for this? - [X] I have searched the existing issues ### Reproduction https://huggingface.co/spaces/osanseviero/mix_match_gradio ### Sc...
diff --git a/gradio/blocks.py b/gradio/blocks.py index 6cb19350f..0b0a434e2 100644 --- a/gradio/blocks.py +++ b/gradio/blocks.py @@ -1,11 +1,13 @@ from __future__ import annotations +import copy import getpass import inspect import os import random import sys import time +import warnings import webbrowser fr...
gradio-app__gradio-1667
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gradio/components.py:Audio.deserialize" ], "edited_modules": [ "gradio/components.py:Audio" ] }, "file": "gradio/components.py" } ]
gradio-app/gradio
8c9a9a9696c54d109a8a2ca808b34221f56b0a90
TypeError in TTS demo ### Describe the bug Looking to demo a text-to-speech model using the [fastspeech2 checkpoint](https://huggingface.co/facebook/fastspeech2-en-ljspeech) from the HF hub as follows: ```python import gradio as gr gr.Interface.load("huggingface/facebook/fastspeech2-en-ljspeech").launch(); ```...
diff --git a/gradio/components.py b/gradio/components.py index dad746069..f977fdca9 100644 --- a/gradio/components.py +++ b/gradio/components.py @@ -2119,7 +2119,7 @@ class Audio(Changeable, Clearable, Playable, Streamable, IOComponent): return processing_utils.encode_url_or_file_to_base64(y) def deseri...
gradio-app__gradio-1685
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gradio/components.py:Radio.postprocess" ], "edited_modules": [ "gradio/components.py:Radio" ] }, "file": "gradio/components.py" } ]
gradio-app/gradio
eb42fc3cf874e2252536623462eab02d3d27f07f
Dropdown is disabled when created with blocks ### Describe the bug Hi, Tried creating gradio app with blocks, Dropdown was disabled after launch. ### Is there an existing issue for this? - [x] I have searched the existing issues ### Reproduction ``` import gradio as gr demo = gr.Blocks() with demo: ...
diff --git a/gradio/components.py b/gradio/components.py index f977fdca9..246016f70 100644 --- a/gradio/components.py +++ b/gradio/components.py @@ -1233,9 +1233,7 @@ class Radio(Changeable, IOComponent): Returns: (str): string of choice """ - return ( - y if y is not None e...
gradio-app__gradio-3091
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gradio/processing_utils.py:decode_base64_to_image" ], "edited_modules": [ "gradio/processing_utils.py:decode_base64_to_image" ] }, "file": "gradio/processing_utils.py" ...
gradio-app/gradio
5264b4c6ff086844946d5e17e4bbc4554766bcb3
images rotated ### Describe the bug When I upload an image on my iphone it gets rotated vs. uploading the same image on desktop. I assume this might have something to do with the iphone image upload being HEIC. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Repro...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ad4e223b7..db0445848 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,17 @@ # Upcoming Release ## New Features: -No changes to highlight. + +### iOS image rotation fixed 🔄 + +Previously photos uploaded via iOS would be rotated after processing. This has been fi...
gradio-app__gradio-3196
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gradio/queueing.py:Queue.gather_event_data", "gradio/queueing.py:Queue.send_message", "gradio/queueing.py:Queue.get_message" ], "edited_modules": [ "gradio/queueing.p...
gradio-app/gradio
fa094a03e231da55a2b1504780f707cba436178c
load events don't work well on HF spaces if queue enabled ### Describe the bug I've noticed that some demos don't work well on HF spaces. If you go to them, you'll see that the queue is really large and doesn't go down. The one thing these demos all have in common is that they have load events and the queue enabled...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fea5bb9e..e6e15fdc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,10 +8,10 @@ ## Bug Fixes: - Ensure `mirror_webcam` is always respected by [@pngwn](https://github.com/pngwn) in [PR 3245](https://github.com/gradio-app/gradio/pull/3245) - Fix issue where updated ma...
gramener__gramex-566
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gramex/config.py:_calc_value" ], "edited_modules": [ "gramex/config.py:_calc_value" ] }, "file": "gramex/config.py" } ]
gramener/gramex
1906389650a482aad5676dea5132113a72755401
Invalid computed variable crashes Gramex If we have ```yaml variables: INVALID_FUNCTION: function: nonexistent() ``` ... this prevents Gramex from starting up. It should warn and continue with the default value of the variable instead.
diff --git a/gramex/config.py b/gramex/config.py index 8c137231..4832bfe7 100644 --- a/gramex/config.py +++ b/gramex/config.py @@ -240,9 +240,12 @@ def _calc_value(val, key): if val.get('function'): from .transforms import build_transform function = build_transform(val, vars={'key': N...
grampajoe__happy-6
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "happy/__init__.py:Happy.create" ], "edited_modules": [ "happy/__init__.py:Happy" ] }, "file": "happy/__init__.py" }, { "changes": { "added_entities": null...
grampajoe/happy
7121a2d81b511fd198624ddb37526ef541ffd2c6
Add an --env option to pass env overrides There should be an `--env` option for `happy up` that allows passing env overrides to the `app-setups` endpoint.
diff --git a/README.rst b/README.rst index 1acae81..738e6ed 100644 --- a/README.rst +++ b/README.rst @@ -75,6 +75,13 @@ happy can find it later. logged in through Heroku CLI, i.e. your token is stored in your ``netrc`` file. +- ``--env`` + + (optional) Environment variable overrides, e.g. ``--env KEY=value``. ...
graphcore-research__gfloat-26
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/gfloat/decode.py:decode_float" ], "edited_modules": [ "src/gfloat/decode.py:decode_float" ] }, "file": "src/gfloat/decode.py" }, { "changes": { "added...
graphcore-research/gfloat
be5928f823f800f5d49c0e8c878692b80fa6b430
`test/test_encode.py::test_encode[binary32]` is faling on 32-bit x86 When running the test suite on a 32-bit x86 system, I'm getting the following test failure: ```pytb $ python -m pytest --ignore test/test_microxcaling.py -l ========================================================= test session starts ===========...
diff --git a/src/gfloat/decode.py b/src/gfloat/decode.py index 47f1403..ffb0093 100644 --- a/src/gfloat/decode.py +++ b/src/gfloat/decode.py @@ -21,6 +21,8 @@ def decode_float(fi: FormatInfo, i: int) -> FloatValue: ValueError: If :paramref:`i` is outside the range of valid code points in :paramref:`fi`....
graphistry__pygraphistry-562
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "graphistry/compute/ast.py:maybe_filter_dict_from_json" ], "edited_modules": [ "graphistry/compute/ast.py:maybe_filter_dict_from_json" ] }, "file": "graphistry/compute/a...
graphistry/pygraphistry
4cc316b570e10edadce391ce490228dff7361689
[FEA] predicates dont translate from json to python ``` import graphistry from graphistry import n, e_forward, is_in chain_operations = graphistry.Chain([n(name="is_carib_bank_origin"),e_forward(hops=1, edge_match={"originator_bank_country": is_in(options=["Cayman Islands", "Bermuda", "Virgin Islands British", "Br...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ea4821ae..e2ab8fa7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Development] +## [0.33.8 - 2024-04-30] + +### Added + +* Fix from_json when json object contains predi...
graphql-python__gql-322
[ { "changes": { "added_entities": [ "gql/dsl.py:DSLVariable.default" ], "added_modules": null, "edited_entities": [ "gql/dsl.py:ast_from_value", "gql/dsl.py:DSLVariable.__init__", "gql/dsl.py:DSLVariable.to_ast_type", "gql/dsl.py:DSLVariable.set_typ...
graphql-python/gql
a4641d08e29276a22e2aa55b3d37bd5558aa781d
Default values when using DSLVariables. As an user, I sometimes write queries this way: ``` gql("""query SomeQuery($arg: Int = 100) { field(input=$arg) { ... } }""") ``` That gives me some flexibility as I can execute this query without passing any variables. I haven't found how to do this using the D...
diff --git a/docs/advanced/dsl_module.rst b/docs/advanced/dsl_module.rst index fd48527..1c2c1c8 100644 --- a/docs/advanced/dsl_module.rst +++ b/docs/advanced/dsl_module.rst @@ -206,6 +206,35 @@ will generate a query equivalent to:: } } +Variable arguments with a default value +""""""""""""""""""""""""""""...
graphql-python__gql-338
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gql/utilities/serialize_variable_values.py:serialize_value" ], "edited_modules": [ "gql/utilities/serialize_variable_values.py:serialize_value" ] }, "file": "gql/utilit...
graphql-python/gql
5912f8fe1526f803d71e76d8450b00c23909da17
Cannot omit optional arguments in mutation using serialize_variables=True **Describe the bug** If the schema defines optional input arguments (no `!`) for a mutation, the [execute method](https://gql.readthedocs.io/en/stable/modules/gql.html#gql.Client.execute) requires those `variable_values` to be `None`. They can...
diff --git a/gql/utilities/serialize_variable_values.py b/gql/utilities/serialize_variable_values.py index 833df8b..38ad199 100644 --- a/gql/utilities/serialize_variable_values.py +++ b/gql/utilities/serialize_variable_values.py @@ -85,6 +85,7 @@ def serialize_value(type_: GraphQLType, value: Any) -> Any: retu...
graphql-python__gql-359
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gql/client.py:Client._build_schema_from_introspection", "gql/client.py:SyncClientSession.execute", "gql/client.py:AsyncClientSession.subscribe", "gql/client.py:AsyncClientSession...
graphql-python/gql
5a9c0cca271b23915a621339a28004dc457a4bdc
Client crashes on 429 HTTP response code **Describe the bug** This bug occurred as I was fetching data from the Santiment API (https://api.santiment.net/graphiql). If no API key is supplied, rate limiting kicks in after a while and the client gets a 429 HTTP response code (nr. of tries remaining are in the headers). ...
diff --git a/gql/client.py b/gql/client.py index 6a6f5a6..69804fa 100644 --- a/gql/client.py +++ b/gql/client.py @@ -34,6 +34,7 @@ from .transport.transport import Transport from .utilities import build_client_schema from .utilities import parse_result as parse_result_fn from .utilities import serialize_variable_val...
graphql-python__graphene-1473
[ { "changes": { "added_entities": [ "graphene/types/enum.py:EnumMeta.__iter__" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "graphene/types/enum.py:EnumMeta" ] }, "file": "graphene/types/enum.py" } ]
graphql-python/graphene
f891a3683dbc1198d6b7dfad1835a16ca3562452
KeyError: 0 while iterating PyEnum-style KeyError: 0 arises when I try to iterate over graphene Enums. The same code with PyEnums works fine: ``` from graphene import Enum class Class(Enum): FIRST = "first" SECOND = "second" for c in Class: print(c) ``` * **What is the expected behavior?** O...
diff --git a/graphene/types/enum.py b/graphene/types/enum.py index 0f68236..58e65c6 100644 --- a/graphene/types/enum.py +++ b/graphene/types/enum.py @@ -56,6 +56,9 @@ class EnumMeta(SubclassWithMeta_Meta): return super(EnumMeta, cls).__call__(*args, **kwargs) # return cls._meta.enum(*args, **kwargs) ...
graphql-python__graphene-1478
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "graphene/types/schema.py:TypeMap.create_enum" ], "edited_modules": [ "graphene/types/schema.py:TypeMap" ] }, "file": "graphene/types/schema.py" } ]
graphql-python/graphene
f09b2e5a81ea3ca108ccc972b65966ec363a4e78
cannot have Enum member named "description" if the enum contains member called "descrpition" or "deprecation_reason", graphql schema-bullding validations die with error like : TypeError: The description of the enum value must be a string Happens on latest beta version, and depends on grapql's version. This seems...
diff --git a/graphene/types/schema.py b/graphene/types/schema.py index 1a33a93..7fa046d 100644 --- a/graphene/types/schema.py +++ b/graphene/types/schema.py @@ -1,3 +1,4 @@ +from enum import Enum as PyEnum import inspect from functools import partial @@ -169,10 +170,16 @@ class TypeMap(dict): values = {} ...
graphql-python__graphene-641
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "graphene/relay/connection.py:Connection.__init_subclass_with_meta__" ], "edited_modules": [ "graphene/relay/connection.py:Connection" ] }, "file": "graphene/relay/conne...
graphql-python/graphene
38db32e4f2d57f54a77879f9277ad4408792c881
Bug: Name of a connection is always the name of the class ``` class BranchesOnClient(relay.Connection): pass ``` Based on the implementation of `relay.Connection` I expect the default name to be `BranchesOnClientConnection`. ``` class BranchesOnClient(relay.Connection, name="Foo"): pass ``` Now I...
diff --git a/graphene/relay/connection.py b/graphene/relay/connection.py index afe6ffb..3e2e9ad 100644 --- a/graphene/relay/connection.py +++ b/graphene/relay/connection.py @@ -73,7 +73,7 @@ class Connection(ObjectType): edge = type(edge_name, edge_bases, {}) cls.Edge = edge - _meta.name = na...
graphql-python__graphene-644
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "graphene/utils/str_converters.py:to_camel_case" ], "edited_modules": [ "graphene/utils/str_converters.py:to_camel_case" ] }, "file": "graphene/utils/str_converters.py" ...
graphql-python/graphene
38db32e4f2d57f54a77879f9277ad4408792c881
Fields with numbers in names do not capitalize correctly I noticed that the field with names containing numbers (e.g. `field_i18n`) doesn't capitalize correctly. For example: `correct_field` becomes `correctField`, but `field_i18n` becomes `field_I18N` and `t1e2s3t` becomes `t1E2S3T` which is obvious incorrect. ...
diff --git a/graphene/utils/str_converters.py b/graphene/utils/str_converters.py index ae8ceff..6fcdfb7 100644 --- a/graphene/utils/str_converters.py +++ b/graphene/utils/str_converters.py @@ -1,13 +1,13 @@ import re -# From this response in Stackoverflow +# Adapted from this response in Stackoverflow # http://st...
graphql-python__graphene-751
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "graphene/relay/node.py:Node.get_node_from_global_id" ], "edited_modules": [ "graphene/relay/node.py:Node" ] }, "file": "graphene/relay/node.py" } ]
graphql-python/graphene
7bd77a0817677656e2ed8e8ac235ab5e8d557487
Incorrectly formatted error message. The error message generated here is incorrect. It should be `only_type._meta.name` instead of `graphene_type._meta.name`. This way the expected value will be reported, which is what the message says it is. https://github.com/graphql-python/graphene/blob/7bd77a0817677656e2ed8e8ac2...
diff --git a/graphene/relay/node.py b/graphene/relay/node.py index 6596757..5c787ff 100644 --- a/graphene/relay/node.py +++ b/graphene/relay/node.py @@ -101,8 +101,8 @@ class Node(AbstractNode): if only_type: assert graphene_type == only_type, ( - 'Must receive an {} id.' - ...
graphql-python__graphene-752
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "graphene/types/inputobjecttype.py:InputObjectType.__init_subclass_with_meta__" ], "edited_modules": [ "graphene/types/inputobjecttype.py:InputObjectType" ] }, "file": "...
graphql-python/graphene
332214ba9c545b6d899e181a34666540f02848fe
InputObjectType.__init_sublcass_with_meta__ overwrites passed _meta.fields In `InputObjectType.__init_subclass_with_meta__`, the`fields` of the `_meta` arg are overwritten, which can cause complications for subclassing. @classmethod def __init_subclass_with_meta__(cls, container=None, _meta=None, **optio...
diff --git a/graphene/types/inputobjecttype.py b/graphene/types/inputobjecttype.py index dbfccc4..b84fc0f 100644 --- a/graphene/types/inputobjecttype.py +++ b/graphene/types/inputobjecttype.py @@ -50,7 +50,10 @@ class InputObjectType(UnmountedType, BaseType): yank_fields_from_attrs(base.__dict__, _as=I...
graphql-python__graphene-957
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "graphene/types/enum.py:EnumMeta.__call__" ], "edited_modules": [ "graphene/types/enum.py:EnumMeta" ] }, "file": "graphene/types/enum.py" } ]
graphql-python/graphene
abff3d75a39bc8f2d1fdb48aafa1866cf47dfff6
Cannot create a enum with a deprecation reason supplied ## How to reproduce ```python options = { 'description': 'This my enum', 'deprecation_reason': 'For the funs'} graphene.Enum('MyEnum', [('some', 'data')], **options) ``` ## What happened ``` File "/Users/Development/saleor/saleor/graphql/core/...
diff --git a/graphene/types/enum.py b/graphene/types/enum.py index 6e6bab8..7b8e71f 100644 --- a/graphene/types/enum.py +++ b/graphene/types/enum.py @@ -46,7 +46,12 @@ class EnumMeta(SubclassWithMeta_Meta): def __call__(cls, *args, **kwargs): # noqa: N805 if cls is Enum: description = kwargs...
graphql-python__graphene-980
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "graphene/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "graphene/types/...
graphql-python/graphene
1fcdeaac655919f08cf1306ab4a405060f879634
Bad hyperlink on documentation NonNull reference under required field from this page https://docs.graphene-python.org/en/latest/types/scalars/ redirects to an inexistent page, namely: `https://docs.graphene-python.org/en/latest/types/scalars/list-and-nonnull/#nonnull` The correct link is `https://docs.graphene-pyth...
diff --git a/CODEOWNERS b/CODEOWNERS index 26bb1af..e4457b1 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,1 +1,3 @@ / @syrusakbary @ekampf @dan98765 @projectcheshire +/docs/ @dvndrsn @phalt @changeling +/examples/ @dvndrsn @phalt @changeling diff --git a/README.rst b/README.rst index d6f4592..bb8fecb 100644 --- a/REA...
graphql-python__graphene-django-1063
[ { "changes": { "added_entities": [ "graphene_django/fields.py:DjangoListField.get_manager" ], "added_modules": null, "edited_entities": [ "graphene_django/fields.py:DjangoListField.get_default_queryset", "graphene_django/fields.py:DjangoListField.list_resolver", ...
graphql-python/graphene-django
eb7a0265d8360d539385f9ce152ec95d74cc5f1a
DjangoListField returning stale data by default https://repl.it/talk/share/DjangoListField-bug/79205 Idk if this is the correct way of sharing the repl, if not, lmk Repro: 1. Create superuser 2. In one tab, run query ```py { allRecipes { id title instructions } } ``` 3. In another tab, g...
diff --git a/graphene_django/fields.py b/graphene_django/fields.py index 78efceb..fdf95aa 100644 --- a/graphene_django/fields.py +++ b/graphene_django/fields.py @@ -43,16 +43,16 @@ class DjangoListField(Field): def model(self): return self._underlying_type._meta.model - def get_default_queryset(self)...
graphql-python__graphene-django-1083
[ { "changes": { "added_entities": [ "graphene_django/converter.py:convert_field_to_decimal" ], "added_modules": [ "graphene_django/converter.py:convert_field_to_decimal" ], "edited_entities": null, "edited_modules": null }, "file": "graphene_django/conv...
graphql-python/graphene-django
e559a42374529378dbdcb6bcb4f3ff704312a66b
Convert DecimalField to String rather than Float DecimalField entries are currently being converted to Float (https://github.com/graphql-python/graphene-django/blob/8f5a425859ea380d0640c441c5c7f3b1acae17b4/graphene_django/form_converter.py#L56-L59) Full support for Decimal would be great, but in the meantime I propo...
diff --git a/graphene_django/converter.py b/graphene_django/converter.py index 0de6964..63cc35d 100644 --- a/graphene_django/converter.py +++ b/graphene_django/converter.py @@ -18,6 +18,7 @@ from graphene import ( DateTime, Date, Time, + Decimal, ) from graphene.types.json import JSONString from gr...
graphql-python__graphene-django-1477
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "graphene_django/converter.py:convert_django_field_with_choices" ], "edited_modules": [ "graphene_django/converter.py:convert_django_field_with_choices" ] }, "file": "gr...
graphql-python/graphene-django
feb7252b8a12ebdfd056a34cf42c489ec4d001ba
Provide setting to enable/disable converting choices to enums globally In our project we want to disable the auto-convertion of Django choice fields to Enums for every model. To specify convert_choices_to_enum = False on every Type is a bit cumbersome so a global setting would help a lot. I've created a PR which sh...
diff --git a/docs/settings.rst b/docs/settings.rst index 79c52e2..521e434 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -142,6 +142,15 @@ Default: ``False`` # ] +``DJANGO_CHOICE_FIELD_ENUM_CONVERT`` +-------------------------------------- + +When set to ``True`` Django choice fields are automaticall...
graphql-python__graphene-django-837
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "graphene_django/rest_framework/mutation.py:SerializerMutation.get_serializer_kwargs" ], "edited_modules": [ "graphene_django/rest_framework/mutation.py:SerializerMutation" ] ...
graphql-python/graphene-django
b66a3f347947804d0ab7d9763309e2977b5bcd5a
Slightly incorrect Travis pipeline In current implementation, when testing a tagged commit, PyPI release would be triggered after the first success. This is incorrect, since what works on Python 3.5 might not work on Python 3.6 (not even talking about Python 2, which is the first one to be tested in the list). Thus,...
diff --git a/.travis.yml b/.travis.yml index 3531b56..1718d79 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,17 @@ after_success: - pip install coveralls - coveralls -matrix: +stages: + - test + - name: deploy + if: tag IS present + +jobs: fast_finish: true + + allow_failures: + - env: DJAN...
graphql-python__graphene-django-838
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "graphene_django/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "graphene...
graphql-python/graphene-django
7940a7b954ef56fa9e538c3d0ff0cecb3ff54d42
Please document using csrf_exempt for read-only POST APIs I have a ReactJS application that is hosted on a separate domain from my Django app. But the library (Apollo) currently only makes requests with POST. Since I have no mutations in my Graphene implementations, it's pretty safe for me to use ``csrf_exempt`` for ...
diff --git a/.travis.yml b/.travis.yml index 3531b56..bbeeb80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,17 @@ after_success: - pip install coveralls - coveralls -matrix: +stages: + - test + - name: deploy + if: tag IS present + +jobs: fast_finish: true + + allow_failures: + - env: DJAN...
graphql-python__graphene-django-842
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "graphene_django/types.py:construct_fields" ], "edited_modules": [ "graphene_django/types.py:construct_fields" ] }, "file": "graphene_django/types.py" } ]
graphql-python/graphene-django
7940a7b954ef56fa9e538c3d0ff0cecb3ff54d42
Validate Meta.fields and Meta.exclude on DjangoObjectType tl;dr: DjangoObjectType ignores all unknown values in `Meta.fields`. It should compare the fields list with the available Model's fields instead. --- I'm in the process of rewriting DRF-based backend to graphene-django, and I was surprised when my graphene...
diff --git a/graphene_django/types.py b/graphene_django/types.py index ec426f1..4824c45 100644 --- a/graphene_django/types.py +++ b/graphene_django/types.py @@ -33,6 +33,24 @@ def construct_fields( ): _model_fields = get_model_fields(model) + # Validate the given fields against the model's fields. + model...
graphql-python__graphene-django-860
[ { "changes": { "added_entities": [ "graphene_django/converter.py:generate_enum_name", "graphene_django/converter.py:convert_choice_field_to_enum" ], "added_modules": [ "graphene_django/converter.py:generate_enum_name", "graphene_django/converter.py:convert_choic...
graphql-python/graphene-django
6a19ab5a4b7f3cfdb8882cf3de379c0c5b23fdab
Different types with the same name in the schema - Django fields with choices Hi, When you try to create a model with choices field and then create a second model which inherit from the previous one, you will receive error while schema generating. Here you have a simple [project](https://github.com/KaRi94/graphen...
diff --git a/docs/authorization.rst b/docs/authorization.rst index ebc9795..63123b0 100644 --- a/docs/authorization.rst +++ b/docs/authorization.rst @@ -166,7 +166,7 @@ To restrict users from accessing the GraphQL API page the standard Django LoginR After this, you can use the new ``PrivateGraphQLView`` in the proje...
graphql-python__graphene-django-885
[ { "changes": { "added_entities": [ "graphene_django/converter.py:generate_enum_name", "graphene_django/converter.py:convert_choice_field_to_enum" ], "added_modules": [ "graphene_django/converter.py:generate_enum_name", "graphene_django/converter.py:convert_choic...
graphql-python/graphene-django
6a19ab5a4b7f3cfdb8882cf3de379c0c5b23fdab
2.5.0 to 2.6.0 error: TypeError: issubclass() arg 1 must be a class Hello, Thanks for all the work on the new release. I am however getting this error when upgrading to 2.6.0 from 2.5.0 and I just wanted to make sure I understand the change. ```py Traceback (most recent call last): File "src/manage.py",...
diff --git a/docs/authorization.rst b/docs/authorization.rst index ebc9795..63123b0 100644 --- a/docs/authorization.rst +++ b/docs/authorization.rst @@ -166,7 +166,7 @@ To restrict users from accessing the GraphQL API page the standard Django LoginR After this, you can use the new ``PrivateGraphQLView`` in the proje...
graphql-python__graphene-django-977
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "graphene_django/converter.py:convert_postgres_array_to_list", "graphene_django/converter.py:convert_postgres_range_to_string" ], "edited_modules": [ "graphene_django/converte...
graphql-python/graphene-django
c00203499b00d40a696a092ab3c64759eddad0f8
Using exact filter on Relay with ForeignKey model I found a problem when I try to filter a model with ForeignKey. I expect to get the result below if the ID is incorrect. ``` { "data": { "forms": { "edges": [] } } } ``` However, I get every single row in my table returned i...
diff --git a/graphene_django/converter.py b/graphene_django/converter.py index c84b61a..92963d6 100644 --- a/graphene_django/converter.py +++ b/graphene_django/converter.py @@ -255,10 +255,14 @@ def convert_field_to_djangomodel(field, registry=None): @convert_django_field.register(ArrayField) def convert_postgres_a...
grappa-py__grappa-39
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "grappa/operator.py:Operator.__enter__" ], "edited_modules": [ "grappa/operator.py:Operator" ] }, "file": "grappa/operator.py" }, { "changes": { "added_ent...
grappa-py/grappa
c81d2eeaf63788dd130ba712645c82bb1af9b752
Assertion Errors Love the library. It is super useful! I am trying to figure out how to see if a function raises an exception when called with a certain set of parameters. Here is an example (a bit contrived as I am trying to raise my own Exception based on valid inputs). ```python t = [0,1,2] t.index(3) ...
diff --git a/grappa/operator.py b/grappa/operator.py index 2976373..46c67d0 100644 --- a/grappa/operator.py +++ b/grappa/operator.py @@ -208,7 +208,7 @@ class Operator(object): return self.run_matcher(*args, **kw) def __enter__(self): - raise NotImplementedError('operator cannot be used as "w...
grappa-py__grappa-65
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "grappa/__init__.py" }, { "changes": { "added_entities": [ "grappa/operators/raises.py:RaisesOperator.after_success" ], "adde...
grappa-py/grappa
b2c14fc9731abe01e9f0ca8093aa5ebc01846437
Checking for error/exception messages Hello, I'm new to grappa. I'm trying to figure out how to test the contents of an Error/Exception. Typically, ```python import pytest def method(): raise RuntimeError('message') def test_method(): with pytest.raises(RuntimeError, match='message'): ...
diff --git a/History.rst b/History.rst index 25b1517..1011db7 100755 --- a/History.rst +++ b/History.rst @@ -2,70 +2,6 @@ History ======= -1.0.0 / 2020-11-21 ------------------- - - * feat: major version v1 - * fix: #53, #55, #48, #59 (credits to @sgissinger) - * feat: added mock call operators (credits to @sgis...
great-expectations__great_expectations-107
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "great_expectations/dataset/base.py:DataSet.expectation", "great_expectations/dataset/base.py:DataSet.get_expectations_config", "great_expectations/dataset/base.py:DataSet.save_expectatio...
great-expectations/great_expectations
e4f42b80d95cff33339681464a72d833c692dd65
Proposal: define a clear pattern for default output_format and catch_exceptions parameters The default value of those parameters changes based on context according to the documentation, and that is currently implemented by ```None``` triggering the default value. Document that or agree it's clear.
diff --git a/great_expectations/dataset/base.py b/great_expectations/dataset/base.py index 14acf8ecf..47c943cba 100644 --- a/great_expectations/dataset/base.py +++ b/great_expectations/dataset/base.py @@ -6,6 +6,7 @@ import traceback import pandas as pd import numpy as np +from collections import defaultdict fro...
great-expectations__great_expectations-122
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "great_expectations/dataset/base.py:DataSet.calc_map_expectation_success" ], "edited_modules": [ "great_expectations/dataset/base.py:DataSet" ] }, "file": "great_expecta...
great-expectations/great_expectations
c5ba7058a8afc99b7b9ce523d3cb183961a321a3
Add unit tests for `format_column_map_output` and `calc_map_expectation_success`
diff --git a/.gitignore b/.gitignore index 8cc0d85e1..7b686a190 100644 --- a/.gitignore +++ b/.gitignore @@ -103,3 +103,5 @@ ENV/ # vim backup files *~ + +.DS_Store \ No newline at end of file diff --git a/examples/notebooks/Distributional_Expectations_Demo.ipynb b/examples/notebooks/Distributional_Expectations_Dem...
great-expectations__great_expectations-191
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "great_expectations/dataset/base.py:DataSet.validate" ], "edited_modules": [ "great_expectations/dataset/base.py:DataSet" ] }, "file": "great_expectations/dataset/base.p...
great-expectations/great_expectations
f4b15d20a092fcbef690506f89bddec84b8140ff
`Dataset.validate` `catch_exceptions` parameter fails if the `expectation_type` itself is unknown. Replication code: ``` import great_expectations as ge my_df = ge.dataset.PandasDataSet({"x":range(10)}) my_df.append_expectation({'expectation_type':'foobar', 'kwargs':{}}) my_df.validate() ``` Produces: ``` In...
diff --git a/great_expectations/dataset/base.py b/great_expectations/dataset/base.py index 7b6b568bf..d75e3c0e6 100644 --- a/great_expectations/dataset/base.py +++ b/great_expectations/dataset/base.py @@ -606,18 +606,38 @@ If you wish to change this behavior, please set discard_failed_expectations, dis war...
great-expectations__great_expectations-296
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "great_expectations/dataset/pandas_dataset.py:PandasDataset._constructor" ], "edited_modules": [ "great_expectations/dataset/pandas_dataset.py:PandasDataset" ] }, "file"...
great-expectations/great_expectations
abb6d090c69a7793b98d4c8d3cbd048d614fc657
When calling groupby on subclassed PandasDataset, groups revert to PandasDataset It's possible I'm doing something wrong when subclassing, but: I'm subclassing PandasDataset to create custom expectations. When calling the groupby method on these custom datasets, the groups revert to the base PandasDataset type (and...
diff --git a/great_expectations/dataset/pandas_dataset.py b/great_expectations/dataset/pandas_dataset.py index 5b3b5447e..c53c23a11 100644 --- a/great_expectations/dataset/pandas_dataset.py +++ b/great_expectations/dataset/pandas_dataset.py @@ -250,7 +250,7 @@ class PandasDataset(MetaPandasDataset, pd.DataFrame): ...
great-expectations__great_expectations-385
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "great_expectations/dataset/sqlalchemy_dataset.py:MetaSqlAlchemyDataset.column_map_expectation", "great_expectations/dataset/sqlalchemy_dataset.py:MetaSqlAlchemyDataset.column_aggregate_expectati...
great-expectations/great_expectations
c0ab4f922b607f135caf6dac7bed16f61dbdeead
Allow passing a schema name to SqlAlchemyDataset Currently, SqlAlchemyDataset accepts a table name but not a schema name. I'm currently working in Redshift. When I try to instantiate a `SqlAlchemyDataset`, I get a `KeyError` with `public.<tablename>`. After some inspection, I determined that the issue is popping up in ...
diff --git a/docs/source/custom_expectations.rst b/docs/source/custom_expectations.rst index f7340871b..419814e8d 100644 --- a/docs/source/custom_expectations.rst +++ b/docs/source/custom_expectations.rst @@ -74,7 +74,7 @@ For SqlAlchemyDataset, the decorators work slightly differently. See the MetaSql mod...
great-expectations__great_expectations-390
[ { "changes": { "added_entities": [ "great_expectations/dataset/sqlalchemy_dataset.py:SqlAlchemyDataset.column_reflection_fallback" ], "added_modules": null, "edited_entities": [ "great_expectations/dataset/sqlalchemy_dataset.py:SqlAlchemyDataset.__init__", "great_...
great-expectations/great_expectations
10e1792ae5f9d250d5393bc14b488e189358cccc
SqlAlchemyDatasets can't be used with custom sql for databases with multiple schemas Instantiating a `SqlAlchemyDataset` with a database which supports multiple schemas fails on the following line: https://github.com/great-expectations/great_expectations/blob/d7a4ee03cfce8bea66c5f91573bb87e4385b1eb1/great_expectatio...
diff --git a/docs/source/roadmap_changelog.rst b/docs/source/roadmap_changelog.rst index 7656d1f47..5e62bc5a5 100644 --- a/docs/source/roadmap_changelog.rst +++ b/docs/source/roadmap_changelog.rst @@ -14,6 +14,8 @@ Planned Features v.0.4.4__develop ---------------- +* Enable custom_sql datasets for databases with m...
grid-parity-exchange__Egret-219
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "egret/common/lazy_ptdf_utils.py:remove_inactive" ], "edited_modules": [ "egret/common/lazy_ptdf_utils.py:remove_inactive" ] }, "file": "egret/common/lazy_ptdf_utils.py"...
grid-parity-exchange/Egret
650481cc6ce7323bd7185d66f5f56cbaa39de443
Testing for BaseMVA scaling - [ ] scale/unscale -> attributes should be the same - [ ] scale -> spot check various values (some that should be scaled, others that should not be) -> unscale -> spot check various values - [ ] regression: scaled / unscaled versions of unit commitment should yield the same answer (easy t...
diff --git a/egret/common/lazy_ptdf_utils.py b/egret/common/lazy_ptdf_utils.py index f942579..745bcb4 100644 --- a/egret/common/lazy_ptdf_utils.py +++ b/egret/common/lazy_ptdf_utils.py @@ -433,7 +433,6 @@ def remove_inactive(mb, solver, time=None, prepend_str=""): branches = model.model_data.data['elements']['bran...
grid-parity-exchange__Egret-237
[ { "changes": { "added_entities": [ "egret/model_library/transmission/tx_utils.py:_insert_first_point", "egret/model_library/transmission/tx_utils.py:_insert_last_point" ], "added_modules": [ "egret/model_library/transmission/tx_utils.py:_insert_first_point", "eg...
grid-parity-exchange/Egret
4662ad213ca3f7f142dba5e97f34b2212a3d8048
Extending PWL Costs The PWL cost curve handling introduced in #227 fail when the lowest power point on the curve is greater than or equal p_max and when the highest power point on the curve is less than or equal to p_min. To resolve this, we could either: 1. Determine this is a user error, in which case we should t...
diff --git a/egret/model_library/transmission/tx_utils.py b/egret/model_library/transmission/tx_utils.py index 8c46480..fb99fb0 100644 --- a/egret/model_library/transmission/tx_utils.py +++ b/egret/model_library/transmission/tx_utils.py @@ -546,6 +546,21 @@ def _convert_modeldata_pu(model_data, transform_func, inplace)...
gridsmartercities__aws-lambda-decorators-101
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aws_lambda_decorators/classes.py:Parameter.extract_value" ], "edited_modules": [ "aws_lambda_decorators/classes.py:Parameter" ] }, "file": "aws_lambda_decorators/classe...
gridsmartercities/aws-lambda-decorators
a1e4059f360920d876d8310644b82dbe7a4967db
Missing extract data can set incorrect name in Parameter class With this bug it's possible to set a default value for an incorrect key when extracting a parameter. It's also possible for incorrect key names to persist across unit tests when the Parameter object persists across tests (default behaviour in python's unitt...
diff --git a/aws_lambda_decorators/classes.py b/aws_lambda_decorators/classes.py index 7c66a47..ec6847a 100644 --- a/aws_lambda_decorators/classes.py +++ b/aws_lambda_decorators/classes.py @@ -179,11 +179,10 @@ class Parameter(ValidatedParameter, BaseParameter): """ for path_key in filter(lambda item:...
griffithlab__VAtools-41
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "vatools/vcf_genotype_annotator.py:create_vcf_reader", "vatools/vcf_genotype_annotator.py:create_vcf_writer", "vatools/vcf_genotype_annotator.py:main" ], "edited_modules": [ ...
griffithlab/VAtools
b876fe698e774e808e675ed61a722f9f1ff853b1
Add feature to vcf-genotype-annotator to allow for adding GT field to existing samples Right now the `vcf-genotype-annotator` will throw a fatal error if the give sample already exists in the VCF. If the GT field does not yet exist in the VCF (no header and not a field in `FORMAT`) this new option would allow for the t...
diff --git a/docs/index.rst b/docs/index.rst index 7f26fc7..3c991e0 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -24,7 +24,8 @@ annotate VCF files with data from other tools. field in the VCF INFO column. **vcf-genotype-annotator** - A tool to add a new sample to an existing VCF file. + A tool to a...
griffithlab__VAtools-45
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "vatools/vcf_expression_annotator.py:main" ], "edited_modules": [ "vatools/vcf_expression_annotator.py:main" ] }, "file": "vatools/vcf_expression_annotator.py" } ]
griffithlab/VAtools
89b018a36870b7bebfd0ecd97da7d12ce0ccf89c
Inaccurate warning message when running vcf-expression-annotator very minor, but if a gene is not found when running vcf-expression-annotator the warning message still says: ```WARNING:root:12 of 382 transcripts did not have an expression entry for their gene id.``` from ```vcf-expression-annotator SCLC20_R_LN.vatoo...
diff --git a/vatools/vcf_expression_annotator.py b/vatools/vcf_expression_annotator.py index a094bad..29d7b6f 100644 --- a/vatools/vcf_expression_annotator.py +++ b/vatools/vcf_expression_annotator.py @@ -225,7 +225,7 @@ def main(args_input = sys.argv[1:]): vcf_writer.close() if missing_expressions_count > ...
griffithlab__civicpy-49
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "civicpy/civic.py:bulk_search_variants_by_coordinates" ], "edited_modules": [ "civicpy/civic.py:bulk_search_variants_by_coordinates" ] }, "file": "civicpy/civic.py" } ...
griffithlab/civicpy
37a2f8b3cb75dc46b70ffa5884d69ffc4d29cf04
implement intermediate search strategies Query encompassing and record encompassing search strategies need to be implemented for bulk coordinate search. See Figure 2D from manuscript for details.
diff --git a/civicpy/civic.py b/civicpy/civic.py index 203f39f..f6cf475 100644 --- a/civicpy/civic.py +++ b/civicpy/civic.py @@ -850,8 +850,8 @@ def bulk_search_variants_by_coordinates(sorted_queries, search_mode='any'): :param search_mode: ['any', 'query_encompassing', 'variant_encompassing', 'exact'] ...
gristlabs__asttokens-110
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asttokens/mark_tokens.py:MarkTokens.visit_joinedstr" ], "edited_modules": [ "asttokens/mark_tokens.py:MarkTokens" ] }, "file": "asttokens/mark_tokens.py" }, { "...
gristlabs/asttokens
a051af6dc04a1f8cb1d2662e016a139092b05bf6
Compatibility with Python 3.12 and unreleased astroid 3.0.0 Hello, I'd like to ask for help, in Fedora, we are rebuilding all Python packages with the upcoming Python 3.12.0. I've tested astroid from the main branch (last commit https://github.com/pylint-dev/astroid/commit/8d57ce2f3e226c2ac3cdd7f6a57dac2dd5ec5a4b at...
diff --git a/asttokens/mark_tokens.py b/asttokens/mark_tokens.py index 3afce53..32b42d7 100644 --- a/asttokens/mark_tokens.py +++ b/asttokens/mark_tokens.py @@ -361,7 +361,34 @@ class MarkTokens(object): last_token, # type: util.Token ): # type: (...) -> Tuple[util.To...
gristlabs__asttokens-37
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asttokens/mark_tokens.py:MarkTokens._iter_non_child_tokens", "asttokens/mark_tokens.py:MarkTokens._expand_to_matching_pairs" ], "edited_modules": [ "asttokens/mark_tokens.py:...
gristlabs/asttokens
f207f03b669deb4af3fe9cb4df1ba40982126988
IndexError on f((x)[:, 0]) I've had this for a while but only now found the time to boil down to a minimal reproducing case. :X Reproducer: ```py import asttokens asttokens.ASTTokens('f((x)[:, 0])', parse=True) ``` Running this file gives: ```pytb Traceback (most recent call last): File "/tmp/reprodu...
diff --git a/asttokens/mark_tokens.py b/asttokens/mark_tokens.py index 6ab95e4..82acb55 100644 --- a/asttokens/mark_tokens.py +++ b/asttokens/mark_tokens.py @@ -103,22 +103,6 @@ class MarkTokens(object): newline = self._code.find_token(start_token, token.ENDMARKER) return self._code.prev_token(newline) - ...
gristlabs__asttokens-66
[ { "changes": { "added_entities": [ "asttokens/util.py:is_starred" ], "added_modules": [ "asttokens/util.py:is_starred" ], "edited_entities": null, "edited_modules": null }, "file": "asttokens/util.py" } ]
gristlabs/asttokens
7dc12af0f2848b4d7e112449c79439a1b6e68cf5
Official support for 3.9 and maybe 3.10 https://github.com/gristlabs/asttokens/pull/56 added testing for 3.9 but this should be made official in setup.cfg. 3.10 should also be tested. This is based on https://github.com/aroberge/friendly-traceback/issues/96 thinking that only 3.8 is supported.
diff --git a/.travis.yml b/.travis.yml index d86cffc..4276339 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -dist: xenial +dist: bionic language: python sudo: false @@ -9,8 +9,8 @@ python: - 3.7 - 3.8-dev - 3.9-dev - - pypy2.7-6.0 - - pypy3.5 + - pypy2 + - pypy3 env: global: diff --g...
gristlabs__asttokens-93
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "asttokens/__init__.py" }, { "changes": { "added_entities": [ "asttokens/asttokens.py:ASTTextBase.__init__", "asttokens/asttokens...
gristlabs/asttokens
cd739fecbda81bccdc1c57914eee9dcd6b9ddef3
Consider a clearer optional-functionality API Currently `ASTTokens` serves a number of different roles depending on what arguments its passed. With https://github.com/gristlabs/asttokens/pull/93 this is growing further and the workarounds to type checking being added in that PR perhaps suggest that the limits of the cu...
diff --git a/asttokens/__init__.py b/asttokens/__init__.py index e8686d4..eeda0ed 100644 --- a/asttokens/__init__.py +++ b/asttokens/__init__.py @@ -19,6 +19,6 @@ transformations. """ from .line_numbers import LineNumbers -from .asttokens import ASTTokens +from .asttokens import ASTText, ASTTokens, supports_tokenle...
gtsystem__python-remotezip-14
[ { "changes": { "added_entities": [ "remotezip.py:pairwise" ], "added_modules": [ "remotezip.py:pairwise" ], "edited_entities": [ "remotezip.py:RemoteZip._get_position_to_size" ], "edited_modules": [ "remotezip.py:RemoteZip" ] },...
gtsystem/python-remotezip
8d6634cc51e127afb7a9704c364f4fa136b5fd8d
Get 416 Client Error on some zip files remotezip raising `remotezip.RemoteIOError` on some files. For example, http://0x0.st/o5Pa.apk (it's unavailable for now, so I re-uploaded it to https://transfer.sh/get/rndzvr/test.apk) Also uploaded it to GitHub as zip archive: [test.zip](https://github.com/gtsystem/python-remot...
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index cd0191b..c56f2c7 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -12,7 +12,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: ...
gtsystem__python-remotezip-16
[ { "changes": { "added_entities": [ "remotezip.py:RemoteFetcher.get_file_size" ], "added_modules": null, "edited_entities": [ "remotezip.py:RemoteFetcher.__init__", "remotezip.py:RemoteFetcher.prepare_request", "remotezip.py:RemoteFetcher.fetch", "r...
gtsystem/python-remotezip
2afca9a2df6c302f61eb612683bd4e4ee74e9cb5
Unhandled HTTPErrors When Negative Offset Not Supported When trying to use remotezip with PyPi, I discovered that while their server supports range requests, it does not support using a negative offset to get {content-length - bytes}-{content-length}. When raise_for_status is called, an HTTP 501 error is returned (i...
diff --git a/README.md b/README.md index f359611..d570447 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ To download the content, this library rely on the `requests` module. The constru * ... Please look at the [requests](http://docs.python-requests.org/en/master/user/quickstart/#make-a-request) documentatio...
gtsystem__python-remotezip-25
[ { "changes": { "added_entities": [ "remotezip.py:RemoteZip.size", "remotezip.py:_printTable" ], "added_modules": [ "remotezip.py:_printTable" ], "edited_entities": [ "remotezip.py:_list_files" ], "edited_modules": [ "remotezip.py:...
gtsystem/python-remotezip
6eb622610a8aa504fc9292ded0322996862802be
feature request: file size of remote zip file Unfortunatelly summing up all uncompressed sizes of all zipped entries is not equivalent to the filesize if I were to download a zip file. I guess thats because the zip file itself has metadata etc. Therefore, I would like to store the file size of the remote file and make...
diff --git a/remotezip.py b/remotezip.py index a0a994c..f7302f0 100755 --- a/remotezip.py +++ b/remotezip.py @@ -5,7 +5,6 @@ from datetime import datetime from itertools import tee import requests -from tabulate import tabulate __all__ = ['RemoteIOError', 'RemoteZip'] @@ -254,17 +253,35 @@ class RemoteZip(zipf...
gtsystem__python-remotezip-8
[ { "changes": { "added_entities": [ "remotezip.py:RemoteIO.seekable" ], "added_modules": null, "edited_entities": [ "remotezip.py:RemoteIO.__init__", "remotezip.py:RemoteIO.read" ], "edited_modules": [ "remotezip.py:RemoteIO" ] }, ...
gtsystem/python-remotezip
a0be1dd3157a0118117786e4ce994777086e869e
Underlying stream is not seekable when entry is passed as file Here is short code that cause error ``` import h5py from remotezip import RemoteZip def main(): remoteZip = RemoteZip( 'https://docs-assets.developer.apple.com/ml-research/datasets/hypersim/v1/scenes/ai_001_001.zip') with rem...
diff --git a/README.md b/README.md index 0c8ab8a..c20fa05 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,9 @@ To download the content, this library rely on the `requests` module. The constru Please look at the [zipfile](https://docs.python.org/3/library/zipfile.html#zipfile-objects) documentation for usage detail...
gurumitts__pylutron-caseta-20
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pylutron_caseta/smartbridge.py:Smartbridge._load_devices" ], "edited_modules": [ "pylutron_caseta/smartbridge.py:Smartbridge" ] }, "file": "pylutron_caseta/smartbridge....
gurumitts/pylutron-caseta
52dfa7000b7cd23bee586671d8ef839c932178b8
Device name uses incomplete name. https://github.com/gurumitts/pylutron-caseta/blob/52dfa7000b7cd23bee586671d8ef839c932178b8/pylutron_caseta/smartbridge.py#L321 Device name is assigned the `Name` value from the devices dict, however, the `FullyQualifiedName` would be more appropriate as the latest Lutron Caseta app ...
diff --git a/pylutron_caseta/smartbridge.py b/pylutron_caseta/smartbridge.py index 05527d7..fd50d34 100755 --- a/pylutron_caseta/smartbridge.py +++ b/pylutron_caseta/smartbridge.py @@ -318,7 +318,7 @@ class Smartbridge: if 'LocalZones' in device: device_zone = device['LocalZones'][0]['href...
gurumitts__pylutron-caseta-58
[ { "changes": { "added_entities": [ "pylutron_caseta/smartbridge.py:_format_duration" ], "added_modules": [ "pylutron_caseta/smartbridge.py:_format_duration" ], "edited_entities": [ "pylutron_caseta/smartbridge.py:Smartbridge.set_value", "pylutron_cas...
gurumitts/pylutron-caseta
59dce12abe5865a86a1aadeb73de358cd56af438
Lights lack SUPPORT_TRANSITION I noticed that Lutron Caseta specificially lacks the SUPPORT_TRANSITION effects, yet the Lutron Caseta dimmers definitely seem to have support.
diff --git a/pylutron_caseta/smartbridge.py b/pylutron_caseta/smartbridge.py index 0762eab..046ff08 100644 --- a/pylutron_caseta/smartbridge.py +++ b/pylutron_caseta/smartbridge.py @@ -1,7 +1,9 @@ """Provides an API to interact with the Lutron Caseta Smart Bridge.""" import asyncio +from datetime import timedelta ...
gurumitts__pylutron-caseta-89
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "pylutron_caseta/__init__.py" }, { "changes": { "added_entities": [ "pylutron_caseta/smartbridge.py:Smartbridge.set_tilt" ], ...
gurumitts/pylutron-caseta
5c169cccc0d958400721997c18204585fb187a70
Support for SerenaTiltOnlyWoodBlind Please add support for SerenaTiltOnlyWoodBlind
diff --git a/CHANGELOG.md b/CHANGELOG.md index ca2e5e9..235c1a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Support for Serena tilt-only wood blinds. - New command line tools: lap-pair, leap-scan, leap. ...
guykisel__inline-plz-129
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "inlineplz/linters/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "inline...
guykisel/inline-plz
a7c89d5b65df2486ccf78f43fcffdc18dff76bd7
rflint is running against all file types ``` Message: Path: node_modules/stylint/node_modules/yargs/node_modules/cliui/node_modules/wordwrap/test/idleness.txt Line number: 19 Content: set([u'rflint: Line is too long (exceeds 250 characters) (LineTooLong)']) ``` fyi @raphaelcastaneda
diff --git a/inlineplz/linters/__init__.py b/inlineplz/linters/__init__.py index 16cce9f..5cafd13 100644 --- a/inlineplz/linters/__init__.py +++ b/inlineplz/linters/__init__.py @@ -175,13 +175,13 @@ LINTERS = { 'rflint': { 'install': [['pip', 'install', 'robotframework-lint']], 'help': ['rflint',...
guykisel__inline-plz-228
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "inlineplz/linters/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "inline...
guykisel/inline-plz
dc293c43edd1609683294660fb7c6a0840fb24ea
switch eslint to a different formatter the json formatter breaks on long text: https://github.com/eslint/eslint/issues/5380 ``` b'Invalid string length\nRangeError: Invalid string length\n at JSON.stringify (<anonymous>)\n at module.exports (/home/travis/build/guykisel/inline-plz/node_modules/eslint/lib/forma...
diff --git a/inlineplz/linters/__init__.py b/inlineplz/linters/__init__.py index 7fede16..a0fd9a4 100644 --- a/inlineplz/linters/__init__.py +++ b/inlineplz/linters/__init__.py @@ -100,9 +100,9 @@ LINTERS = { 'install': [['npm', 'install', 'eslint']], 'help': [os.path.normpath('./node_modules/.bin/esl...
guykisel__inline-plz-28
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "inlineplz/linters/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "inline...
guykisel/inline-plz
59cb7f9721ca3390fa31c48583e786e3728e8f1a
refactor prospector parser to use json formatter
diff --git a/inlineplz/linters/__init__.py b/inlineplz/linters/__init__.py index f4b0a73..420508e 100644 --- a/inlineplz/linters/__init__.py +++ b/inlineplz/linters/__init__.py @@ -13,7 +13,7 @@ from inlineplz import parsers LINTERS = { 'prospector': { 'install': ['pip', 'install', 'prospector'], - ...
guykisel__inline-plz-29
[ { "changes": { "added_entities": [ "inlineplz/interfaces/github.py:GitHubInterface.format_message" ], "added_modules": null, "edited_entities": [ "inlineplz/interfaces/github.py:GitHubInterface.post_messages", "inlineplz/interfaces/github.py:GitHubInterface.is_dup...
guykisel/inline-plz
3cfa8f2c3f0fd814c105ca4d51f0727659a45fa8
move message formatting logic from message module into interface modules
diff --git a/inlineplz/interfaces/github.py b/inlineplz/interfaces/github.py index 005b8ff..4dd4397 100644 --- a/inlineplz/interfaces/github.py +++ b/inlineplz/interfaces/github.py @@ -26,14 +26,14 @@ class GitHubInterface(InterfaceBase): def post_messages(self, messages): messages_to_post = 0 fo...
gvalkov__tornado-http-auth-8
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "tornado_http_auth.py:BasicAuthMixin.authenticate_user" ], "edited_modules": [ "tornado_http_auth.py:BasicAuthMixin" ] }, "file": "tornado_http_auth.py" } ]
gvalkov/tornado-http-auth
9eb225c1740fad1e53320b55d8d4fc6ab4ba58b6
authenticate_user method raises binascii.Error when provided auth is not base64 `authenticate_user` method raises uncontrolled exception when the provided Authorization header is not base64. To reproduce the issue: ``` curl -i \ -H 'Accept:application/json' \ -H 'Authorization:Basic not_a_base64_string' \...
diff --git a/tornado_http_auth.py b/tornado_http_auth.py index 2c6efbb..cbe74c8 100644 --- a/tornado_http_auth.py +++ b/tornado_http_auth.py @@ -209,8 +209,11 @@ class BasicAuthMixin(object): raise self.SendChallenge() auth_data = auth_header.split(None, 1)[-1] - auth_data = base64.b64dec...
gwpy__gwosc-75
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gwosc/api.py:_fetch_allevents_event_json" ], "edited_modules": [ "gwosc/api.py:_fetch_allevents_event_json" ] }, "file": "gwosc/api.py" } ]
gwpy/gwosc
11cc61b842d7d75172745c8512869c7557cb3527
Exact match when query for event time In the latest version of the client, there is an error thrown when trying to get the GPS time of GW190521 ``` from gwosc import datasets t0 = datasets.event_gps('GW190521') ``` The error message says that the query for this event name gets multiple events (e.g. includes GW...
diff --git a/gwosc/api.py b/gwosc/api.py index 5f00576..7c5d2ec 100644 --- a/gwosc/api.py +++ b/gwosc/api.py @@ -241,9 +241,17 @@ def _fetch_allevents_event_json( return return True + # match datasets matched = list(filter(_match, allevents.items())) names = set(x[1]["commonName"] f...
h1alexbel__samples-filter-28
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "objects/pre_filter.py:PreFilter.prepare" ], "edited_modules": [ "objects/pre_filter.py:PreFilter" ] }, "file": "objects/pre_filter.py" } ]
h1alexbel/samples-filter
c312133cefac45fdfc174f47632a947e3421e41b
input.py:36-39: Prepare files in /pipeline directory. We... The puzzle `19-a9982129` from #19 has to be resolved: https://github.com/h1alexbel/samples-filter/blob/10d01f5605ec49ca3d7986a779a2524a16df3575/objects/input.py#L36-L39 The puzzle was created by @rultor on 17-Apr-24. Estimate: 25 minutes, role: DEV. If...
diff --git a/.rultor.yml b/.rultor.yml index 3098633..342bfaf 100644 --- a/.rultor.yml +++ b/.rultor.yml @@ -24,6 +24,9 @@ architect: - h1alexbel assets: pypi.txt: h1alexbel/home#assets/pypi.txt +install: | + python3 -m pip install --upgrade pip + pip install twine merge: script: | make install test c...
h2non__jsonpath-ng-62
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "jsonpath_ng/ext/string.py" }, { "changes": { "added_entities": [ "jsonpath_ng/jsonpath.py:Root.__hash__", "jsonpath_ng/jsonpath....
h2non/jsonpath-ng
fefc4dd188c8acb45df0704fa694bba039cdc1e5
Deprecation warning due to invalid escape sequences in Python 3.8 Deprecation warnings are raised due to invalid escape sequences in Python 3.8 . Below is a log of the warnings raised during compiling all the python files. Using raw strings or escaping them will fix this issue. ``` find . -iname '*.py' | xargs -P ...
diff --git a/README.rst b/README.rst index 593d7b5..03d2dbc 100644 --- a/README.rst +++ b/README.rst @@ -203,9 +203,19 @@ Extensions | | - ``$.objects[\\some_field,/other_field]`` | +--------------+-----------------------------------------------+ | filter | - ``$.objects[?(@some_field > 5)]`` ...
h2non__pook-111
[ { "changes": { "added_entities": [ "src/pook/helpers.py:_get_key" ], "added_modules": [ "src/pook/helpers.py:_get_key" ], "edited_entities": [ "src/pook/helpers.py:trigger_methods" ], "edited_modules": [ "src/pook/helpers.py:trigger_metho...
h2non/pook
fac40e9f571152ba09bc16954548ce51d590ccea
Cannot pass `param`, `param_exists` or `params` kwarg to `Mock` constructor Passing any of the query parameter settings to the `Mock` constructor results in the following error: ``` > pook.get(url="https://example.com", params={"a": "b"}) src/pook/api.py:342: in get return mock(url, method="GET", **kw) src/p...
diff --git a/src/pook/helpers.py b/src/pook/helpers.py index 193c2c9..6af0685 100644 --- a/src/pook/helpers.py +++ b/src/pook/helpers.py @@ -1,8 +1,24 @@ +import re + from inspect import ismethod, isfunction from .exceptions import PookInvalidArgument -def trigger_methods(instance, args): +reply_response_re = re....
h2non__pook-113
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "src/pook/matchers/api.py" }, { "changes": { "added_entities": [ "src/pook/matchers/base.py:ExistsMatcher.request_attr", "src/poo...
h2non/pook
ff30ca754b7569245640e593ffc7389c91a3e500
`param_exists` fails when requested query param has no value The following should work but does not: ``` pook.get("https://example.com").param_exists("x") urlopen("https://example.com/?x") ``` This is because the query param matcher returns `false` here: https://github.com/h2non/pook/blob/fac40e9f571152ba09...
diff --git a/src/pook/matchers/api.py b/src/pook/matchers/api.py index 7bc0fb2..c1cfcf2 100644 --- a/src/pook/matchers/api.py +++ b/src/pook/matchers/api.py @@ -1,9 +1,9 @@ from .base import BaseMatcher from .url import URLMatcher from .body import BodyMatcher -from .query import QueryMatcher +from .query import Que...
h2non__pook-129
[ { "changes": { "added_entities": [ "src/pook/engine.py:Engine.no_matches" ], "added_modules": null, "edited_entities": [ "src/pook/engine.py:Engine.match" ], "edited_modules": [ "src/pook/engine.py:Engine" ] }, "file": "src/pook/engine.py...
h2non/pook
ef5bb1ade60aed66aaccb776a0fc9eb16d58bb5a
Provide a more helpful error when `times` is exceeded on a mock I've ran into the issue with repeated request and the default `times: 1` being exceeded quite a few times and it has confused me every time. Could pook give a better error message when a mock has matched but `times` is exceeded. For example: ```py mock...
diff --git a/pyproject.toml b/pyproject.toml index e1d39cc..ae086b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,9 +60,6 @@ extra-dependencies = [ "urllib3~=1.24", "httpx~=0.26.0", - # aiohttp depends on multidict, so we can't test aiohttp until - # https://github.com/aio-libs/multidict/iss...
h2non__pook-83
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pook/assertion.py:equal", "pook/assertion.py:matches" ], "edited_modules": [ "pook/assertion.py:equal", "pook/assertion.py:matches" ] }, "file": "pook/a...
h2non/pook
6344c4d53b8059f9d2bfc46877a0beb8d8e85edf
aiohttp mock only works when using request methods as context managers, but not when awaited Hello, thank you for the lovely project! It makes HTTP mocking really pleasant to work with. I noticed a small issue with the implementation of the aiohttp mock: it appears to only work when using the request methods as cont...
diff --git a/.travis.yml b/.travis.yml index 27d4b54..4f826ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,16 @@ language: python python: - - 2.7 - - 3.4 - 3.5 - 3.6 - 3.7 - 3.8 + - 3.9 + - 3.10 - pypy - pypy3 allow_failures: - - python: 2.7 - - python: 3.4 - python: pypy ...
h2non__pook-90
[ { "changes": { "added_entities": [ "pook/headers.py:to_string_value" ], "added_modules": [ "pook/headers.py:to_string_value" ], "edited_entities": [ "pook/headers.py:HTTPHeaderDict.__getitem__", "pook/headers.py:HTTPHeaderDict.extend", "pook/...
h2non/pook
9bb2eaecf62d8dd048973690281c12da00e434ce
pook can't handle binary headers If a response header is binary, for example something like `('Content-Type', b'application/pdf')`, when pook tries to iterate over the headers, it is expecting a string and throws an error. The problem is in `HTTPHeaderDict.itermerged`.
diff --git a/pook/headers.py b/pook/headers.py index ac20bd2..9119d77 100644 --- a/pook/headers.py +++ b/pook/headers.py @@ -3,6 +3,8 @@ try: except ImportError: from collections import Mapping, MutableMapping +from base64 import b64encode + class HTTPHeaderDict(MutableMapping): """ @@ -53,7 +55,7 @@ cl...
h2non__pook-97
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pook/assertion.py:equal", "pook/assertion.py:matches" ], "edited_modules": [ "pook/assertion.py:equal", "pook/assertion.py:matches" ] }, "file": "pook/a...
h2non/pook
253ad95c518e6c6b3dcde66a25fbd6775b6378ba
`HeadersMatcher: 're.Pattern' object has no attribute 'decode'` with pook 1.2.0 Not sure if actionable, but after upgrading from 1.1.1 to 1.2.0, I see this new error on a test where pook can not match on the request headers any more it seems. No additional details or stack trace unfortunately. ``` pook error! =>...
diff --git a/pook/assertion.py b/pook/assertion.py index 493b065..152f1e6 100644 --- a/pook/assertion.py +++ b/pook/assertion.py @@ -30,8 +30,6 @@ def equal(x, y): """ return test_case().assertEqual(x, y) or True - assert x == y - def matches(x, y, regex_expr=False): """ @@ -52,9 +50,6 @@ def mat...
h2non__pook-98
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pook/interceptors/http.py:HTTPClientInterceptor._on_request" ], "edited_modules": [ "pook/interceptors/http.py:HTTPClientInterceptor" ] }, "file": "pook/interceptors/ht...
h2non/pook
43409d3614b32b1e70cde92fbb0d815b99da4d2f
Issues using with urllib When using with urllib an exception is throw as response doesn't have a code attribute. Uncovered this while trying to mock a prometheus push gateway endpoint with prometheus client library. Simplified code snippet below: Exception raised: ``` self = <urllib.request.HTTPErrorProcessor obje...
diff --git a/pook/api.py b/pook/api.py index a05c9b4..b03fbe4 100644 --- a/pook/api.py +++ b/pook/api.py @@ -205,7 +205,7 @@ def use(network=False): _engine = Engine(network=network) _engine.activate() - # Yield enfine to be used by the context manager + # Yield engine to be used by the context manage...
h5io__h5io-79
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "h5io/_h5io.py:_triage_write", "h5io/_h5io.py:_triage_read" ], "edited_modules": [ "h5io/_h5io.py:_triage_write", "h5io/_h5io.py:_triage_read" ] }, "file...
h5io/h5io
1c986469908249b9ae2cabc56d9f50b57c6987aa
Should it be possible to store a class? I'm starting to feel like I might have misunderstood and be reaching a bit here; is it reasonable to use `h5io` for storing a class? E.g. ```python class MyClass: @classmethod def foo(cls): return 42 import h5io h5io.write_hdf5( fname="stuff.h5",...
diff --git a/h5io/_h5io.py b/h5io/_h5io.py index b389a5c..3baed51 100644 --- a/h5io/_h5io.py +++ b/h5io/_h5io.py @@ -8,6 +8,7 @@ import importlib import json import sys import tempfile +from inspect import isclass from io import UnsupportedOperation from os import path as op from pathlib import PurePath @@ -230,6...
haddocking__arctic3d-111
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/arctic3d/cli.py:main" ], "edited_modules": [ "src/arctic3d/cli.py:main" ] }, "file": "src/arctic3d/cli.py" }, { "changes": { "added_entities": null, ...
haddocking/arctic3d
e8255d64aa795aa2d959296b3991509bbe273266
add run directory as input argument this will be useful when excluding stuff. keep the default behaviour when no run_dir is selected by user
diff --git a/src/arctic3d/cli.py b/src/arctic3d/cli.py index ea51e99..cb6cded 100644 --- a/src/arctic3d/cli.py +++ b/src/arctic3d/cli.py @@ -56,6 +56,11 @@ argument_parser.add_argument( help="", ) +argument_parser.add_argument( + "--run_dir", + help="directory where to store the run", +) + def load_arg...
haddocking__arctic3d-123
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/arctic3d/cli.py:main" ], "edited_modules": [ "src/arctic3d/cli.py:main" ] }, "file": "src/arctic3d/cli.py" }, { "changes": { "added_entities": null, ...
haddocking/arctic3d
b4b08d38fe02314a4557c0ffbc14b391e692b8b0
introduce chain_to_use input parameter if the user gives a `pdb_to_use` parameter it can happen that the same pdb is associated to multiple chains. We want to let the user pick the right chain as well.
diff --git a/src/arctic3d/cli.py b/src/arctic3d/cli.py index 7c615d5..eec983a 100644 --- a/src/arctic3d/cli.py +++ b/src/arctic3d/cli.py @@ -57,8 +57,8 @@ argument_parser.add_argument( ) argument_parser.add_argument( - "--pdb_renum_db", - help="path to a local version of the PDBrenum database", + "--chain_...
haddocking__arctic3d-136
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/arctic3d/cli.py:main" ], "edited_modules": [ "src/arctic3d/cli.py:main" ] }, "file": "src/arctic3d/cli.py" }, { "changes": { "added_entities": null, ...
haddocking/arctic3d
2d129c11280765ffdaf43c41bab4fea32532b8bb
address stochiometry issue by increasing the number of interfaces when the stochiometry of the complex is not 1:1, the uniprot ID-uniprot ID pairwise interface takes into account geometrically different interfaces, thus leading to unfeasible predictions. We should take into account pdb and chain information in the foll...
diff --git a/src/arctic3d/cli.py b/src/arctic3d/cli.py index dc7ad7c..c325584 100644 --- a/src/arctic3d/cli.py +++ b/src/arctic3d/cli.py @@ -76,6 +76,12 @@ argument_parser.add_argument( help=".json file containing the pdb data", ) +argument_parser.add_argument( + "--full", + help="consider full uniprot-pd...
haddocking__arctic3d-181
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/arctic3d/cli_resclust.py:main" ], "edited_modules": [ "src/arctic3d/cli_resclust.py:main" ] }, "file": "src/arctic3d/cli_resclust.py" }, { "changes": { ...
haddocking/arctic3d
e6fd4a88dfeb9ce8b7bf0dd104f5c513658cf57e
add maxclust criterion in resclust cli adding the `maxclust` criterion can be useful when we already know that we want to divide the structure in n clusters of residues
diff --git a/src/arctic3d/cli_resclust.py b/src/arctic3d/cli_resclust.py index d5f3b12..fa7e31c 100644 --- a/src/arctic3d/cli_resclust.py +++ b/src/arctic3d/cli_resclust.py @@ -14,6 +14,10 @@ Input arguments: `threshold` : the number to be used as threshold for hierarchical clustering. `chain` : the chain I...
haddocking__arctic3d-256
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/arctic3d/cli.py:main" ], "edited_modules": [ "src/arctic3d/cli.py:main" ] }, "file": "src/arctic3d/cli.py" }, { "changes": { "added_entities": null, ...
haddocking/arctic3d
9d82a31b52e0fa7a29a44ef0c6548ce14315fda9
return cif_f in get_maxint_pdb `get_maxint_pdb` function should return the updated cif file, so that we can a) check its presence in the tests b) delete it in the tests
diff --git a/src/arctic3d/cli.py b/src/arctic3d/cli.py index cc265bf..7e3dfe2 100644 --- a/src/arctic3d/cli.py +++ b/src/arctic3d/cli.py @@ -260,7 +260,7 @@ def main( else: pdb_data_path = None # get best pdb - pdb_f, filtered_interfaces = get_best_pdb( + ...
haddocking__arctic3d-304
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/arctic3d/modules/pdb.py:fetch_pdb_files", "src/arctic3d/modules/pdb.py:validate_api_hit", "src/arctic3d/modules/pdb.py:get_best_pdb" ], "edited_modules": [ "src/a...
haddocking/arctic3d
f64dd5f2c627e5a4ce2249f73cb416103fec2e3e
allow for bad pdb structures Users should have the freedom to include pdb files with poor resolution in the search. We could say that a pdb file provided in the `pdb_to_use` field does not have to respect any of the resolution-coverage criteria. An example for this is uniprot ID F1PJP5, for which no PDB respects the re...
diff --git a/src/arctic3d/modules/pdb.py b/src/arctic3d/modules/pdb.py index 096f98b..3dfad7e 100644 --- a/src/arctic3d/modules/pdb.py +++ b/src/arctic3d/modules/pdb.py @@ -401,14 +401,15 @@ def fetch_pdb_files(pdb_to_fetch, uniprot_id): for hit in pdb_to_fetch: pdb_id = hit["pdb_id"] chain_id = ...
haddocking__arctic3d-310
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/arctic3d/cli_localise.py:main" ], "edited_modules": [ "src/arctic3d/cli_localise.py:main" ] }, "file": "src/arctic3d/cli_localise.py" }, { "changes": { ...
haddocking/arctic3d
c3735ede98a890e67b0b933be0d75ba253aad2fd
create plotly barplot in localise CLI plotly barplot is better for the web service
diff --git a/poetry.lock b/poetry.lock index 5cf15e9..b9469db 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,9 +1,10 @@ -# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. +# This file is automatically @generated by Poetry and should not be changed by hand. [[package]] name...