diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/can/interfaces/usb2canInterface.py b/can/interfaces/usb2canInterface.py index <HASH>..<HASH> 100644 --- a/can/interfaces/usb2canInterface.py +++ b/can/interfaces/usb2canInterface.py @@ -77,12 +77,6 @@ def message_convert_rx(messagerx): ERROR_FRAME = bool(messagerx.flags & IS_ERROR_FRAME) - #msgr...
removed code fragments from the comments.
py
diff --git a/src/sentaku/modeling.py b/src/sentaku/modeling.py index <HASH>..<HASH> 100644 --- a/src/sentaku/modeling.py +++ b/src/sentaku/modeling.py @@ -1,8 +1,20 @@ import attr +class ElementMixin(object): + @property + def context(self): + """the context this element belongs to""" + return ...
split ElementMixin out of Element
py
diff --git a/pywws/LogData.py b/pywws/LogData.py index <HASH>..<HASH> 100755 --- a/pywws/LogData.py +++ b/pywws/LogData.py @@ -125,12 +125,21 @@ def LogData(params, raw_data, sync=None, clear=False): if ws_type: params._config.remove_option('config', 'ws type') params.set('fixed', 'ws type', ws_t...
Modified LogData.py so it will only run if 'ws type' has been set in weather.ini. This should avoid problems with new users (with <I> type stations) getting garbage data because a '<I>' type is assumed.
py
diff --git a/bfg9000/builtins/rules.py b/bfg9000/builtins/rules.py index <HASH>..<HASH> 100644 --- a/bfg9000/builtins/rules.py +++ b/bfg9000/builtins/rules.py @@ -23,11 +23,15 @@ class TestDriver(object): class ObjectFiles(list): def __getitem__(self, key): if isinstance(key, basestring): - pa...
Improve indexing into ObjectFilese (now Paths and Files can be passed directly)
py
diff --git a/lib/python/vdm/server/voltdbserver.py b/lib/python/vdm/server/voltdbserver.py index <HASH>..<HASH> 100644 --- a/lib/python/vdm/server/voltdbserver.py +++ b/lib/python/vdm/server/voltdbserver.py @@ -368,7 +368,7 @@ class VoltDatabase: voltdb_cmd = ['nohup', os.path.join(voltdb_dir, 'voltdb'...
VDM-<I> Replaced single hostname by host list for -H parameter.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,19 +4,19 @@ import os from setuptools import setup -VERSION = '0.0.1dev1' +VERSION = u'0.0.1dev1' def write_version_py(filename=None): if filename is None: filename = os.path.join(os.path.dirname(__f...
Fix Python3 compatibility of setup.py
py
diff --git a/pgpy/pgp.py b/pgpy/pgp.py index <HASH>..<HASH> 100644 --- a/pgpy/pgp.py +++ b/pgpy/pgp.py @@ -179,9 +179,8 @@ class PGPBlock(FileLoader): # by using the generator 0x864CFB and an initialization of 0xB704CE. # The accumulation is done on the data before it is converted to # radix-...
finally figured out how to take this TODO off my list
py
diff --git a/flask_ldapconn/entry.py b/flask_ldapconn/entry.py index <HASH>..<HASH> 100644 --- a/flask_ldapconn/entry.py +++ b/flask_ldapconn/entry.py @@ -69,14 +69,18 @@ class LDAPEntry(object): yield self._attributes[attribute] def __contains__(self, item): - return True if self.__getitem__...
Do not use None as magic value, instead, use well-defined AttributeError. "" would be a valid attribute value, although coercing to False, right ;)?
py
diff --git a/clients/python/setup.py b/clients/python/setup.py index <HASH>..<HASH> 100644 --- a/clients/python/setup.py +++ b/clients/python/setup.py @@ -21,7 +21,7 @@ from setuptools import setup, find_packages -CLIENT_VERSION = '1.3.0' +CLIENT_VERSION = '1.3.1' install_reqs = [ 'diskcache',
Bump girder python client to <I>
py
diff --git a/bitstring.py b/bitstring.py index <HASH>..<HASH> 100644 --- a/bitstring.py +++ b/bitstring.py @@ -443,11 +443,10 @@ BYTE_REVERSAL_DICT = dict() # For Python 2.x/ 3.x coexistence # Yes this is very very hacky. -try: - xrange +if sys.version_info[0] == 2: for i in range(256): BYTE_REVERS...
Fix Python 2/3 check. There are some third party packages which patch out xrange and leak their patch into global scope. While they shouldn't be doing this, bitstring should also check based on the version number rather than the behaviour so that these sorts of patches won't stop it working.
py
diff --git a/epub_meta/collector.py b/epub_meta/collector.py index <HASH>..<HASH> 100644 --- a/epub_meta/collector.py +++ b/epub_meta/collector.py @@ -176,10 +176,12 @@ def _discover_toc(zf, opf_xmldoc, opf_filepath): if title: level = -1 parentNode...
Avoid infinite loops for bad/unknown pub files
py
diff --git a/pyrax/manager.py b/pyrax/manager.py index <HASH>..<HASH> 100644 --- a/pyrax/manager.py +++ b/pyrax/manager.py @@ -85,13 +85,13 @@ class BaseManager(object): return self._get(uri) - def create(self, return_none=False, return_raw=False, *args, **kwargs): + def create(self, name, return_non...
Fixed an inconsistency with the _create_body() method parameters.
py
diff --git a/tests/test_people.py b/tests/test_people.py index <HASH>..<HASH> 100644 --- a/tests/test_people.py +++ b/tests/test_people.py @@ -24,7 +24,7 @@ Constants PEOPLE_ID = 287 PEOPLE_NAME = 'Brad Pitt' CREDITS_ID = '52542282760ee313280017f9' -CREDITS_DEPARTMENT = 'Actors' +CREDITS_DEPARTMENT = 'Acting' c...
Update test_people.py CREDITS_DEPARTMENT from Actors to Acting
py
diff --git a/wptools/core.py b/wptools/core.py index <HASH>..<HASH> 100644 --- a/wptools/core.py +++ b/wptools/core.py @@ -21,7 +21,7 @@ class WPTools(object): """ REQUEST_DELAY = 0 - REQUEST_LIMIT = 25 + REQUEST_LIMIT = 50 cache = None data = None
Bumped REQUEST_LIMIT to <I> for page.get_more() continuations
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,9 +9,9 @@ if __name__ == '__main__': setup( version='0.1.dev4', name='pyinfra', - description='Stateful deploy with Python.', - author='Nick @ Oxygem', - author_email='nick@oxygem...
Updated author/name/desc.
py
diff --git a/salt/loader.py b/salt/loader.py index <HASH>..<HASH> 100644 --- a/salt/loader.py +++ b/salt/loader.py @@ -1588,8 +1588,10 @@ class LazyLoader(salt.utils.lazy.LazyDict): Load a single item if you have it ''' # if the key doesn't have a '.' then it isn't valid for this mod dict - ...
Better exception After spending an hour trying to figure out why I had a key error in an orchestration state I realised that saltstack requires a runner id with a dot. A clearer error message will save the next person wasting the same time.
py
diff --git a/scss/tool.py b/scss/tool.py index <HASH>..<HASH> 100644 --- a/scss/tool.py +++ b/scss/tool.py @@ -15,6 +15,8 @@ from scss.compiler import Compiler from scss.errors import SassEvaluationError from scss.expression import Calculator from scss.legacy import Scss +from scss.legacy import _default_scss_vars +...
Fix presence of legacy default vars in the repl.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -88,7 +88,7 @@ setup( ], install_requires=["decorator", "enum34", - "lz4==0.8.2", + "lz4<=0.8.2", "mockextras", ...
Used <=<I> to fix broken builds in the following cases: using <I> + the system-installed lz4 libs are older and not contain all symbols. This happens because <I> has external dependencies for lz4.so on system's libs.
py
diff --git a/lib/python/voltcli/environment.py b/lib/python/voltcli/environment.py index <HASH>..<HASH> 100644 --- a/lib/python/voltcli/environment.py +++ b/lib/python/voltcli/environment.py @@ -34,6 +34,7 @@ import os import glob import re import shlex +import platform from voltcli import utility @@ -72,7 +73,...
For ENG-<I>, check OS reliably before checking total memory
py
diff --git a/pyes/es.py b/pyes/es.py index <HASH>..<HASH> 100644 --- a/pyes/es.py +++ b/pyes/es.py @@ -235,7 +235,7 @@ class ES(object): "operations have not been flushed. Call force_bulk()!", self) # Do our best to save the client anyway... - ...
Fixed invalid call on ES exiting. Renamed force_bulk -> flush_bulk(True) in ES.__del__. Closes <I>.
py
diff --git a/inverse_covariance/inverse_covariance.py b/inverse_covariance/inverse_covariance.py index <HASH>..<HASH> 100644 --- a/inverse_covariance/inverse_covariance.py +++ b/inverse_covariance/inverse_covariance.py @@ -4,8 +4,10 @@ import numpy as np from sklearn.base import BaseEstimator from . import metrics ...
Added kendalltau_correlation as an option to initialize correlation matrix
py
diff --git a/sir/pythia/pythia.py b/sir/pythia/pythia.py index <HASH>..<HASH> 100755 --- a/sir/pythia/pythia.py +++ b/sir/pythia/pythia.py @@ -247,7 +247,7 @@ def action_build_mts(args): shell=True) subprocess.check_call(("sed -i 's; > %s/outputs/.\+$;;g' commands.txt" % args.obj...
fixed executable injection in mts-to-pythia
py
diff --git a/airflow/jobs/__init__.py b/airflow/jobs/__init__.py index <HASH>..<HASH> 100644 --- a/airflow/jobs/__init__.py +++ b/airflow/jobs/__init__.py @@ -16,3 +16,7 @@ # specific language governing permissions and limitations # under the License. # +import airflow.jobs.backfill_job # noqa +import airflow.jobs....
Load all job models at once (#<I>)
py
diff --git a/zebra/models.py b/zebra/models.py index <HASH>..<HASH> 100644 --- a/zebra/models.py +++ b/zebra/models.py @@ -5,7 +5,7 @@ from zebra.conf import settings class StripeCustomer(models.Model, mixins.StripeMixin, mixins.StripeCustomerMixin): - stripe_customer_id = models.CharField(max_length=50) + s...
made stripe_customer_id and stripe_plan_id fields blankable/nullable
py
diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index <HASH>..<HASH> 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -165,7 +165,7 @@ MAAXBOARD_MINI = "MAAXBOARD_MINI" # Khadas VIM3 KHADAS_VIM3 = "KHAD...
Khadas VIM3 board constants fix.
py
diff --git a/intranet/settings/__init__.py b/intranet/settings/__init__.py index <HASH>..<HASH> 100644 --- a/intranet/settings/__init__.py +++ b/intranet/settings/__init__.py @@ -42,6 +42,7 @@ ENABLE_WAITLIST = True ENABLE_BUS_APP = True ENABLE_BUS_DRIVER = True ENABLE_PRE_EIGHTH_REDIRECT = False +NOTIFY_ADMIN_EMAIL...
chore(settings): reconcile settings
py
diff --git a/autofit/mapper/prior_model/collection.py b/autofit/mapper/prior_model/collection.py index <HASH>..<HASH> 100644 --- a/autofit/mapper/prior_model/collection.py +++ b/autofit/mapper/prior_model/collection.py @@ -111,6 +111,8 @@ class CollectionPriorModel(AbstractPriorModel): @assert_not_frozen def...
fixed tests by joining tuple keys when placing samples in the database
py
diff --git a/easy_thumbnails/tests/templatetags.py b/easy_thumbnails/tests/templatetags.py index <HASH>..<HASH> 100644 --- a/easy_thumbnails/tests/templatetags.py +++ b/easy_thumbnails/tests/templatetags.py @@ -1,10 +1,10 @@ -from django.conf import settings from django.template import Template, Context, TemplateSynta...
Fix a test which wasn't explicitly setting THUMBNAIL_DEBUG like it should have been
py
diff --git a/fcm_django/admin.py b/fcm_django/admin.py index <HASH>..<HASH> 100644 --- a/fcm_django/admin.py +++ b/fcm_django/admin.py @@ -14,12 +14,13 @@ class DeviceAdmin(admin.ModelAdmin): actions = ("send_message", "send_bulk_message", "send_data_message", "send_bulk_data_message", "enable", "d...
Admin: add select_related and small refactoring
py
diff --git a/src/satosa/backends/saml2.py b/src/satosa/backends/saml2.py index <HASH>..<HASH> 100644 --- a/src/satosa/backends/saml2.py +++ b/src/satosa/backends/saml2.py @@ -404,7 +404,7 @@ class SAMLBackend(BackendModule, SAMLBaseModule): ) # The SAML response may not include a NameID. - su...
Pass proper encryption keys when retrieving the subject NameID This requires the latest pysaml2 to work properly, as older versions of get_subject do not accept the optional keys argument. To have this working without this changeset, one should define the pysaml2 configuration option `encryption_keypairs`.
py
diff --git a/salt/crypt.py b/salt/crypt.py index <HASH>..<HASH> 100644 --- a/salt/crypt.py +++ b/salt/crypt.py @@ -272,7 +272,9 @@ class Crypticle(object): sig = data[-self.SIG_SIZE:] data = data[:-self.SIG_SIZE] if hmac.new(hmac_key, data, hashlib.sha256).digest() != sig: - raise ...
These are raising errors and killing master workes
py
diff --git a/graphql_ws/base_async.py b/graphql_ws/base_async.py index <HASH>..<HASH> 100644 --- a/graphql_ws/base_async.py +++ b/graphql_ws/base_async.py @@ -165,7 +165,7 @@ class BaseAsyncSubscriptionServer(base.BaseSubscriptionServer, ABC): except Exception as e: await self.send_error(c...
Correctly unsubscribe after on_start operation is complete
py
diff --git a/salt/states/file.py b/salt/states/file.py index <HASH>..<HASH> 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -545,7 +545,7 @@ def managed(name, md5=e138491e9d5b97023cea823fe17bac22 The file can contain checksums for several files, in this case every - line must co...
splited -> separated Thanks @UtahDave
py
diff --git a/openstack_dashboard/dashboards/admin/flavors/extras/forms.py b/openstack_dashboard/dashboards/admin/flavors/extras/forms.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/admin/flavors/extras/forms.py +++ b/openstack_dashboard/dashboards/admin/flavors/extras/forms.py @@ -28,8 +28,8 @@ fro...
Bumping up max_length of flavor extra spec. The capture field in the flavor extra spec form, is currently set to <I>, but should be bumped up to accommodate some long values. Change-Id: I<I>a<I>b<I>faf0d7dd<I>c<I>f<I>e3d3cf8e1 Fixes: bug #<I>
py
diff --git a/src/pybel/io/web.py b/src/pybel/io/web.py index <HASH>..<HASH> 100644 --- a/src/pybel/io/web.py +++ b/src/pybel/io/web.py @@ -76,7 +76,7 @@ def to_web(graph, host=None, user=None, password=None): if password is None: raise ValueError('no password found') - url = host + RECIEVE_EN...
Fix bug in to_web Make sure host that accidentally has trailing comma gets sanitized
py
diff --git a/discord/types/message.py b/discord/types/message.py index <HASH>..<HASH> 100644 --- a/discord/types/message.py +++ b/discord/types/message.py @@ -136,3 +136,13 @@ class Message(_MessageOptional): embeds: List[Embed] pinned: bool type: MessageType + + +AllowedMentionType = Literal['roles', 'u...
Add AllowedMentions typings
py
diff --git a/discord/ui/view.py b/discord/ui/view.py index <HASH>..<HASH> 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -158,16 +158,16 @@ class View: __view_children_items__: ClassVar[List[ItemCallbackType[Any, Any]]] = [] def __init_subclass__(cls) -> None: - children: List[ItemCallba...
Properly handle inheritance overriding in View subclasses
py
diff --git a/test_candidate.py b/test_candidate.py index <HASH>..<HASH> 100644 --- a/test_candidate.py +++ b/test_candidate.py @@ -251,6 +251,7 @@ class CandidateTestCase(TestCase): self.assertEqual((master_dir, True, True), args) args, kwargs = gp_mock.call_args self.assertEqual((artifacts_d...
Restore check_call mock to verify it is not called.
py
diff --git a/airflow/operators/python.py b/airflow/operators/python.py index <HASH>..<HASH> 100644 --- a/airflow/operators/python.py +++ b/airflow/operators/python.py @@ -130,9 +130,9 @@ class PythonOperator(BaseOperator): def execute(self, context: Dict): # Export context to make it available for callabl...
[AIRFLOW-<I>] Change logging level for PythonOperator Env exports (#<I>)
py
diff --git a/cli/cumulusci.py b/cli/cumulusci.py index <HASH>..<HASH> 100644 --- a/cli/cumulusci.py +++ b/cli/cumulusci.py @@ -385,8 +385,9 @@ def ci_apextestsdb_upload(config, environment): args += ['--execution-url', config.build_url] # opt: --environment - if environment: - args += ['--environm...
Set a default environment in ci apextests_upload if none provided
py
diff --git a/exchangelib/folders/roots.py b/exchangelib/folders/roots.py index <HASH>..<HASH> 100644 --- a/exchangelib/folders/roots.py +++ b/exchangelib/folders/roots.py @@ -303,6 +303,9 @@ class PublicFoldersRoot(RootOfHierarchy): for f in SingleFolderQuerySet(account=self.account, folder=folder).depth( ...
Ignire missing foler errors here as well
py
diff --git a/h2o-py/h2o/h2o.py b/h2o-py/h2o/h2o.py index <HASH>..<HASH> 100644 --- a/h2o-py/h2o/h2o.py +++ b/h2o-py/h2o/h2o.py @@ -187,6 +187,9 @@ def get_model(model_id): else: raise NotImplementedError(model_type) +def str(frame): + pass + def get_frame(frame_id): """ Obtain a...
PUBDEV-<I> in rapids and R
py
diff --git a/aiozk/session.py b/aiozk/session.py index <HASH>..<HASH> 100644 --- a/aiozk/session.py +++ b/aiozk/session.py @@ -335,5 +335,9 @@ class Session: await self.conn.close(self.timeout) if self.heartbeat_handle: self.heartbeat_handle.cancel() + self.heartbeat_handle...
Cancel heartbeat task when session is closing
py
diff --git a/kconfiglib.py b/kconfiglib.py index <HASH>..<HASH> 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -3625,8 +3625,9 @@ class _Feed(object): class _FileFeed(_Feed): - """_Feed subclass that feeds lines from a file. Keeps track of the filename - and current line number.""" + """_Feed subclass ...
Note that _FileFeed joins lines ending in \.
py
diff --git a/gwpy/timeseries/core.py b/gwpy/timeseries/core.py index <HASH>..<HASH> 100644 --- a/gwpy/timeseries/core.py +++ b/gwpy/timeseries/core.py @@ -973,7 +973,8 @@ class TimeSeries(Series): try: times = new._index except AttributeError: - new.x0 = new.x0.value + other.sh...
TimeSeries.append: bug fix in resize=True
py
diff --git a/openquake/calculators/gmf_ebrisk.py b/openquake/calculators/gmf_ebrisk.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/gmf_ebrisk.py +++ b/openquake/calculators/gmf_ebrisk.py @@ -53,10 +53,9 @@ class GmfEbRiskCalculator(base.RiskCalculator): parent = self.read_previous(oq.hazard_cal...
Error -> warning [skip CI]
py
diff --git a/umi_tools/umi_methods.py b/umi_tools/umi_methods.py index <HASH>..<HASH> 100644 --- a/umi_tools/umi_methods.py +++ b/umi_tools/umi_methods.py @@ -202,6 +202,9 @@ def get_bundles(insam, read_events, else: read_events['Input Reads'] += 1 + if paired: + read_events['P...
updates logging to include number of paired reads
py
diff --git a/pyemma/coordinates/data/_base/iterable.py b/pyemma/coordinates/data/_base/iterable.py index <HASH>..<HASH> 100644 --- a/pyemma/coordinates/data/_base/iterable.py +++ b/pyemma/coordinates/data/_base/iterable.py @@ -58,9 +58,10 @@ class Iterable(six.with_metaclass(ABCMeta, InMemoryMixin, Loggable)): ...
[iterable] handle case 1 timestep is bigger than max_size
py
diff --git a/aircv/__init__.py b/aircv/__init__.py index <HASH>..<HASH> 100644 --- a/aircv/__init__.py +++ b/aircv/__init__.py @@ -282,9 +282,9 @@ def find(im_source, im_search): r = find_all(im_source, im_search, maxcnt=1) return r[0] if r else None -def calculate_brightness(im1, im2): +def brightness(im1,...
Updata __init__.py by gulixin Add an function of comparing the brightness between img1 and img2
py
diff --git a/pipenv/cli/options.py b/pipenv/cli/options.py index <HASH>..<HASH> 100644 --- a/pipenv/cli/options.py +++ b/pipenv/cli/options.py @@ -166,7 +166,7 @@ def dev_option(f): state.installstate.dev = value return value return option("--dev", "-d", is_flag=True, default=False, type=click_bo...
Fix `pipenv install --dev` help text The previous help text made it seem that `pipenv install --dev` would install ONLY dev-packages, which is not the case. The current description is identical to the one used in the documentation, which is a lot clearer.
py
diff --git a/bucky/names.py b/bucky/names.py index <HASH>..<HASH> 100644 --- a/bucky/names.py +++ b/bucky/names.py @@ -25,7 +25,7 @@ def _get_host_trim(): if __host_trim__ is not None: return __host_trim__ host_trim = cfg.name_host_trim - __host_tim__ = [] + __host_trim__ = [] for s in hos...
names: fixed typo in _get_host_trim
py
diff --git a/handler.py b/handler.py index <HASH>..<HASH> 100644 --- a/handler.py +++ b/handler.py @@ -442,7 +442,7 @@ class BotHandler(): # Wikipedia doesn't like the default User-Agent req = Request(url, headers={'User-Agent': 'Mozilla/5.0'}) html = parse(urlopen(req, timeout=5)...
fix lxml missing root
py
diff --git a/polysh/callbacks.py b/polysh/callbacks.py index <HASH>..<HASH> 100644 --- a/polysh/callbacks.py +++ b/polysh/callbacks.py @@ -51,7 +51,7 @@ def add(name, function, repeat): NR_GENERATED_TRIGGERS += 1 trigger = '%s%s:%s:%d/' % (COMMON_PREFIX, name, random_string(5), nr) CALLBACKS[trigger] = (...
PY3: Divisions are no longer floor()ed
py
diff --git a/mintapi/cli.py b/mintapi/cli.py index <HASH>..<HASH> 100644 --- a/mintapi/cli.py +++ b/mintapi/cli.py @@ -334,18 +334,16 @@ def validate_file_extensions(options): options.extended_transactions, ] ): - if not any( - [ - options.filename is None, - ...
Fixing cli checking file extentions (#<I>)
py
diff --git a/lewis/core/control_client.py b/lewis/core/control_client.py index <HASH>..<HASH> 100644 --- a/lewis/core/control_client.py +++ b/lewis/core/control_client.py @@ -145,6 +145,8 @@ class ObjectProxy(object): class manipulation, this class must never be used directly. Instead, it should be used as a ...
Fix code block in control_client.py docstring
py
diff --git a/zenpy/lib/mapping.py b/zenpy/lib/mapping.py index <HASH>..<HASH> 100644 --- a/zenpy/lib/mapping.py +++ b/zenpy/lib/mapping.py @@ -109,7 +109,8 @@ class ZendeskObjectMapping(object): self.always_dirty = dict( conditions=('all', 'any'), organization_field=('custom_field_opt...
Always send User.name to Zendesk ask it is sometimes needed. Raised in #<I>.
py
diff --git a/mrivis/utils.py b/mrivis/utils.py index <HASH>..<HASH> 100644 --- a/mrivis/utils.py +++ b/mrivis/utils.py @@ -156,6 +156,25 @@ def check_image_is_3d(img): return img +def check_image_is_4d(img, min_num_volumes=2): + """Ensures the image loaded is 3d and nothing else.""" + + if len(img.shape)...
utility function to help check if input is 4D image (required for Carpet)
py
diff --git a/lib/reda/containers/ERT.py b/lib/reda/containers/ERT.py index <HASH>..<HASH> 100644 --- a/lib/reda/containers/ERT.py +++ b/lib/reda/containers/ERT.py @@ -95,8 +95,6 @@ class ERTImporters(ImportersBase): def import_mpt(self, filename, **kwargs): """MPT DAS 1 importer - Parameters - ...
make sphinx happy by removing a docstring heading
py
diff --git a/pyreverse/diagrams.py b/pyreverse/diagrams.py index <HASH>..<HASH> 100644 --- a/pyreverse/diagrams.py +++ b/pyreverse/diagrams.py @@ -89,8 +89,11 @@ class ClassDiagram(Figure, FilterMixIn): def get_methods(self, node): """return visible methods""" - return [m for m in sorted(node.val...
Don't crash when sorting visible objects other than function nodes. Closes issue #<I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,11 @@ def readme(): return f.read() # Run the manual f2py build script -import build_fortran_extensions +try: + compiler = fcompiler.get_default_fcompiler() + import build_fortran_extensions +except:...
Wrap call to build_fortran_extensions.py script in try/except. Should not bother calling this script if we cannot find a compiler. This is relevant for building the docs on readthedocs, or any user who just wants the pure python components.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -64,7 +64,6 @@ setup( 'kiwisolver>=1.1.0', 'matplotlib>=2.0.0', 'mne>=0.18.0', - 'nose>=1.3.7', 'numpy>=1.10.1', 'pandas>=0.17.0', 'pyparsing>=2.0.4', @@ -82,10 +81,...
Move nose to extras_require
py
diff --git a/vdf/__init__.py b/vdf/__init__.py index <HASH>..<HASH> 100644 --- a/vdf/__init__.py +++ b/vdf/__init__.py @@ -166,7 +166,7 @@ def dumps(data, pretty=False, level=0): return buf -def dump(data, fp, pretty=True): +def dump(data, fp, pretty=False): if not isinstance(data, dict): raise V...
changed dump() default to pretty=False
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ with open('README.rst') as f: readme = f.read() extras_require = { - 'voice': ['PyNaCl==1.1.2'], + 'voice': ['PyNaCl==1.2.1'], 'docs': [ 'sphinx==1.7.4', 'sphinxcontrib-async...
Update PyNaCl dependency to one that works with <I> This also adds the <I> classifier as with this there are no <I> issues
py
diff --git a/apispec/ext/marshmallow/openapi.py b/apispec/ext/marshmallow/openapi.py index <HASH>..<HASH> 100644 --- a/apispec/ext/marshmallow/openapi.py +++ b/apispec/ext/marshmallow/openapi.py @@ -1,6 +1,11 @@ # -*- coding: utf-8 -*- """Utilities for generating OpenAPI Specification (fka Swagger) entities from mar...
Mark openapi module as private API [skip ci]
py
diff --git a/salt/modules/file.py b/salt/modules/file.py index <HASH>..<HASH> 100644 --- a/salt/modules/file.py +++ b/salt/modules/file.py @@ -1801,7 +1801,7 @@ def get_managed( protos = ['salt', 'http', 'ftp'] if salt._compat.urlparse(source_hash).scheme in protos: ...
Reference the current salt environment. Thanks @hvnsweeting!
py
diff --git a/mbuild/formats/cassandramcf.py b/mbuild/formats/cassandramcf.py index <HASH>..<HASH> 100644 --- a/mbuild/formats/cassandramcf.py +++ b/mbuild/formats/cassandramcf.py @@ -322,7 +322,7 @@ def _write_atom_information(mcf_file, structure, in_ring, IG_CONSTANT_KCAL): mcf_file.write(header) mcf_file.wr...
Add more precision to charge in MCF writer
py
diff --git a/ceph_deploy/util/net.py b/ceph_deploy/util/net.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/util/net.py +++ b/ceph_deploy/util/net.py @@ -165,8 +165,8 @@ def linux_interfaces(conn): 'show', ], ) - ifaces = _interfaces_ip(b'\n'.join(cmd1).decode('utf-8') + '...
util: remove bytes usage - remoto doesn't require it anymore
py
diff --git a/modularodm/fields/listfield.py b/modularodm/fields/listfield.py index <HASH>..<HASH> 100644 --- a/modularodm/fields/listfield.py +++ b/modularodm/fields/listfield.py @@ -83,9 +83,11 @@ class ListField(Field): def do_validate(self, value, obj): - # Child-level validation - for part in...
Skip validatation when _field_instance has no validators to run
py
diff --git a/ml-agents/tests/mock_communicator.py b/ml-agents/tests/mock_communicator.py index <HASH>..<HASH> 100755 --- a/ml-agents/tests/mock_communicator.py +++ b/ml-agents/tests/mock_communicator.py @@ -42,7 +42,7 @@ class MockCommunicator(Communicator): ) rl_init = UnityRLInitializationOutput( ...
Ticked the version in the tests
py
diff --git a/anytemplate/utils.py b/anytemplate/utils.py index <HASH>..<HASH> 100644 --- a/anytemplate/utils.py +++ b/anytemplate/utils.py @@ -182,13 +182,11 @@ def parse_and_load_contexts(contexts, schema=None, werr=False): for fpath, ftype in concat(parse_filespec(f) for f in contexts): try: ...
refactor: move the lines to update ctx into try .. except block in .utils.parse_and_load_contexts
py
diff --git a/cocaine/asio/service.py b/cocaine/asio/service.py index <HASH>..<HASH> 100644 --- a/cocaine/asio/service.py +++ b/cocaine/asio/service.py @@ -102,10 +102,10 @@ class AbstractService(object): @property def address(self): - return self._pipe.address if self.isConnected() else 'unknown' + ...
More concrete service address when it is not connected. * fixed reference error on invoking `isConnecting` method from service when the pipe is not connected * `disconnect` method no longer raises illegal state exception
py
diff --git a/src/sos/hosts.py b/src/sos/hosts.py index <HASH>..<HASH> 100755 --- a/src/sos/hosts.py +++ b/src/sos/hosts.py @@ -1184,7 +1184,10 @@ def test_shared(host): local_files = os.listdir(dir) # remote? dest = host.path_map[dir] - remote_files = host.check_output(f'ls -a {path(de...
Test if shared directory exist on remote host
py
diff --git a/raiden/utils/typing.py b/raiden/utils/typing.py index <HASH>..<HASH> 100644 --- a/raiden/utils/typing.py +++ b/raiden/utils/typing.py @@ -23,7 +23,7 @@ BlockNumber = NewType('BlockNumber', T_BlockNumber) T_BlockTimeout = int BlockTimeout = NewType('BlockTimeout', T_BlockTimeout) -T_ChannelID = bytes +T...
Changing ChannelID type from bytes to uint. As implied by #<I>.
py
diff --git a/django_extensions/management/commands/pipchecker.py b/django_extensions/management/commands/pipchecker.py index <HASH>..<HASH> 100644 --- a/django_extensions/management/commands/pipchecker.py +++ b/django_extensions/management/commands/pipchecker.py @@ -110,7 +110,7 @@ class Command(BaseCommand): ...
Treat rc versions as unstable in pipchecker
py
diff --git a/python/_version/__init__.py b/python/_version/__init__.py index <HASH>..<HASH> 100644 --- a/python/_version/__init__.py +++ b/python/_version/__init__.py @@ -13,8 +13,8 @@ __all__ = [ ] VERSION_MAJOR = 0 -VERSION_MINOR = 10 -VERSION_PATCH = 99 +VERSION_MINOR = 11 +VERSION_PATCH = 0 VERSION_STRING = ...
Python version set to <I>.
py
diff --git a/spacy/about.py b/spacy/about.py index <HASH>..<HASH> 100644 --- a/spacy/about.py +++ b/spacy/about.py @@ -4,13 +4,13 @@ # fmt: off __title__ = "spacy-nightly" -__version__ = "2.1.0a7" +__version__ = "2.1.0a8.dev0" __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cyt...
Set version to <I>a8.dev0
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from distutils.core import setup +from setuptools import setup setup( name = 'pods', packages = ['pods'], # this must be the same as the name above
fix: pkg: New using setuptools for setup
py
diff --git a/Adafruit_DHT/platform_detect.py b/Adafruit_DHT/platform_detect.py index <HASH>..<HASH> 100644 --- a/Adafruit_DHT/platform_detect.py +++ b/Adafruit_DHT/platform_detect.py @@ -51,7 +51,9 @@ def platform_detect(): return BEAGLEBONE_BLACK elif plat.lower().find('armv7l-with-glibc2.4') > -1: ...
Detect the beaglebone black platform running Arch Linux
py
diff --git a/tests/__init__.py b/tests/__init__.py index <HASH>..<HASH> 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -3,7 +3,6 @@ Unit test. Each file in tests/ is for each main package. -#TODO Test for CLI """ import sys import unittest
Remove #TODO for CLI test - done
py
diff --git a/LiSE/LiSE/handle.py b/LiSE/LiSE/handle.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/handle.py +++ b/LiSE/LiSE/handle.py @@ -217,7 +217,7 @@ class EngineHandle(object): 'warning': 30, 'error': 40, 'critical': 50 - }[level] + }[level....
Accept capitalized log levels in EngineHandle.log
py
diff --git a/flask_sqlalchemy_booster/crud_api_view.py b/flask_sqlalchemy_booster/crud_api_view.py index <HASH>..<HASH> 100644 --- a/flask_sqlalchemy_booster/crud_api_view.py +++ b/flask_sqlalchemy_booster/crud_api_view.py @@ -138,7 +138,7 @@ def construct_get_view_function(model_class, get_query_creator=None): ...
fixing the issue with GET of a single resource with query constructor
py
diff --git a/zipline/data/loader.py b/zipline/data/loader.py index <HASH>..<HASH> 100644 --- a/zipline/data/loader.py +++ b/zipline/data/loader.py @@ -156,7 +156,7 @@ def load_market_data(trading_day=trading_day_nyse, # before this date. last_date = trading_days[trading_days.get_loc(now, method='ffill') - 2] ...
BUG: Truncate treasury curves to env min date.
py
diff --git a/LiSE/LiSE/character.py b/LiSE/LiSE/character.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/character.py +++ b/LiSE/LiSE/character.py @@ -1125,8 +1125,8 @@ class Character(DiGraph, AbstractCharacter, RuleFollower): 'character_place': engine._characters_places_rulebooks_cache, 'cha...
Don't advance time when setting character rulebooks initially This means that when you create a bunch of characters in sequence, they share a keyframe.
py
diff --git a/hwt/code.py b/hwt/code.py index <HASH>..<HASH> 100644 --- a/hwt/code.py +++ b/hwt/code.py @@ -179,7 +179,9 @@ def SwitchLogic(cases, default=None): assigTop.Else(statements) hasElse = True else: - pass + raise HwtSyntaxErr...
SwitchLogic: add extra assert when using const as condition
py
diff --git a/authlib/views.py b/authlib/views.py index <HASH>..<HASH> 100644 --- a/authlib/views.py +++ b/authlib/views.py @@ -44,6 +44,10 @@ def post_login_response(request, new_user): return response +def post_logout_response(request): + return redirect("login") + + @never_cache @sensitive_post_paramete...
Make the post logout response configurable
py
diff --git a/spiketoolkit/tests/test_validation.py b/spiketoolkit/tests/test_validation.py index <HASH>..<HASH> 100644 --- a/spiketoolkit/tests/test_validation.py +++ b/spiketoolkit/tests/test_validation.py @@ -9,6 +9,7 @@ from spiketoolkit.validation import compute_isolation_distances, compute_isi_vio def test_calcul...
made function in test explicit for get metric data
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,7 @@ setup( url = 'https://github.com/tschaume/ccsgp_get_started', packages = find_packages(), install_requires = [ - 'h5py==2.2.1', 'gnuplot-py==1.8', 'numpy==1.8.0', 'wsgiref==0.1.2' + #'h5py==2.2.1...
remove h5py dep in setup
py
diff --git a/canmatrix/importsym.py b/canmatrix/importsym.py index <HASH>..<HASH> 100644 --- a/canmatrix/importsym.py +++ b/canmatrix/importsym.py @@ -106,6 +106,7 @@ def importSym(filename, **options): # found new frame: if frameName != line.replace('[','').replace(']','').strip(): ...
.SYM: Close out multiplexed signals at EOF
py
diff --git a/salt/modules/rbenv.py b/salt/modules/rbenv.py index <HASH>..<HASH> 100644 --- a/salt/modules/rbenv.py +++ b/salt/modules/rbenv.py @@ -178,6 +178,7 @@ def install_ruby(ruby, runas=None): ret = {} ret = _rbenv_exec('install', ruby, env=env, runas=runas, ret=ret) if ret['retcode'] == 0: + ...
Add rehash method for rbenv module - After installing gems or rubies, rbenv rehash should be run - No harm in running it multiple times or when not strictly needed in the do method.
py
diff --git a/pypub/chapter.py b/pypub/chapter.py index <HASH>..<HASH> 100644 --- a/pypub/chapter.py +++ b/pypub/chapter.py @@ -179,7 +179,8 @@ class Chapter(object): image_nodes = self._content_tree.find_all('img') raw_image_urls = [node['src'] for node in image_nodes if node.has_attr('src')] ...
correction for img node with no src attribute
py
diff --git a/src/sos/syntax.py b/src/sos/syntax.py index <HASH>..<HASH> 100644 --- a/src/sos/syntax.py +++ b/src/sos/syntax.py @@ -246,7 +246,7 @@ _SOS_MAGIC_TMPL = r''' # SOS magic |preview # %preview |with # %with |use ...
Remove restart as recognizable magic to SoS
py
diff --git a/py/testdir_release/c8/test_c8_rf_airlines_hdfs.py b/py/testdir_release/c8/test_c8_rf_airlines_hdfs.py index <HASH>..<HASH> 100644 --- a/py/testdir_release/c8/test_c8_rf_airlines_hdfs.py +++ b/py/testdir_release/c8/test_c8_rf_airlines_hdfs.py @@ -4,8 +4,8 @@ import h2o, h2o_hosts, h2o_cmd, h2o_import as h2i...
make this less trees and less depth, to see if it will pass on <I>-<I> (jenkins <I> h2o_release_tests/runner.sh)
py
diff --git a/tests/lax_test.py b/tests/lax_test.py index <HASH>..<HASH> 100644 --- a/tests/lax_test.py +++ b/tests/lax_test.py @@ -1447,6 +1447,19 @@ class LaxTest(jtu.JaxTestCase): # jtu.check_jvp(g, partial(api.jvp, g), (a, bs)) + def testScanJit(self): + @api.jit + def f(x, yz): + y, z = yz + ...
add a test for scan-of-jit
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -23,8 +23,8 @@ setup( "microcosm-logging>=1.5.0", "psycopg2-binary>=2.7.5", "pytz>=2018.5", - "SQLAlchemy>=1.2.11", - "SQLAlchemy-Utils>=0.33.3", + "SQLAlchemy>=1.4.10", + ...
bump minimum version requirements of sqlalchemy and sqlalchemy-utils to ensure compatability with latest <I>.x in preparation for sqlalchemy 2.x release and related bugfixes affecting microcosm-eventsource
py
diff --git a/steam_idle.py b/steam_idle.py index <HASH>..<HASH> 100755 --- a/steam_idle.py +++ b/steam_idle.py @@ -69,20 +69,32 @@ def r_sleep(sec): sleep(sec) return sec +sameDelay = 0 +lastDelay = 5 def calc_delay(remainingDrops, playTime): ''' Calculate the idle delay Minimum play time for...
decrease delay by one minute every two calls
py
diff --git a/sphinxarg/ext.py b/sphinxarg/ext.py index <HASH>..<HASH> 100644 --- a/sphinxarg/ext.py +++ b/sphinxarg/ext.py @@ -385,10 +385,11 @@ class ArgParseDirective(Directive): if 'description' in result: items.append(self._nested_parse_paragraph(result['description'])) items.append(n...
add nosubcommands directive to general usage
py
diff --git a/cloudvolume/skeletonservice.py b/cloudvolume/skeletonservice.py index <HASH>..<HASH> 100644 --- a/cloudvolume/skeletonservice.py +++ b/cloudvolume/skeletonservice.py @@ -492,8 +492,10 @@ class PrecomputedSkeleton(object): skeletons = [] for component in forest: edge_list = [] + + cset...
perf(skeletonservice): faster rendering of components
py
diff --git a/salt/daemons/flo/core.py b/salt/daemons/flo/core.py index <HASH>..<HASH> 100644 --- a/salt/daemons/flo/core.py +++ b/salt/daemons/flo/core.py @@ -247,6 +247,9 @@ class Tx(ioflo.base.deeding.Deed): class Router(ioflo.base.deeding.Deed): ''' Routes the communication in and out of uxd connections +...
route publish commands to the function handler
py
diff --git a/rtree/index.py b/rtree/index.py index <HASH>..<HASH> 100644 --- a/rtree/index.py +++ b/rtree/index.py @@ -516,6 +516,9 @@ class Index(object): darray = ctypes.c_double * dimension mins = darray() maxs = darray() + no_data = ctypes.cast(ctypes.pointer(ctypes.c_ubyte(0)), +...
micro-optimize stream loading > <I>% for cases when obj is None. before Stream load: <I> usec/pass after Stream load: <I> usec/pass
py
diff --git a/qiskit/opflow/__init__.py b/qiskit/opflow/__init__.py index <HASH>..<HASH> 100644 --- a/qiskit/opflow/__init__.py +++ b/qiskit/opflow/__init__.py @@ -61,6 +61,16 @@ f(1, 1) = 0. 3. An n-qubit Measurement is a functional taking n-qubit State functions to complex values. For example, a Pauli Z Measurement ...
Add note on operator precedence to opflow docs (#<I>) * Add note on operator precedence to opflow docs I've tried to match the style of the language used in the rest of the documentation for this. * Add exact example of brackets
py