message
stringlengths
13
484
diff
stringlengths
38
4.63k
Remove extra "_tests" suffix The name of the tests directory in the "getting started" documentation has an extra "_tests" suffix. Presumably this is a copy-and-paste error
@@ -100,7 +100,7 @@ You can specify new Python dependencies in `setup.py`. Tests can be added in the `my_dagster_project_tests` directory and you can run tests using `pytest`: ```bash -pytest my_dagster_project_tests_tests +pytest my_dagster_project_tests ``` ### Schedules and sensors
client: lona_context: add shortcuts In most applications Lona has only one window. This patch adds shortcuts to access this first window as the default window.
@@ -326,4 +326,15 @@ Lona.LonaContext = function(settings) { _this._ws.close(); }); }; + + // shortcuts -------------------------------------------------------------- + this.get_default_window = function() { + return this._windows[1]; + }; + + this.run_view = function(url, post_data) { + var window = this.get_default_w...
[WIP]Remove no used attribute in FirewallPolicyRuleAssociation FirewallPolicyRuleAssociation.fire_rule is not used in any places. This patch remove it. TESTING
@@ -102,7 +102,6 @@ class FirewallPolicyRuleAssociation(model_base.BASEV2): ondelete="CASCADE"), primary_key=True) position = sa.Column(sa.Integer) - firewall_rule = orm.relationship('FirewallRuleV2') class FirewallPolicy(model_base.BASEV2, model_base.HasId, HasName,
Documentation: Add one 200 response code The Rest Api Doc Linter requires at least one 200 response code.
@@ -251,6 +251,8 @@ class HeaderRedirector(ErrorHandlingMethodView): style: simple required: false responses: + 200: + description: OK 303: description: OK content:
Now adding flags with no arguments to consumed_arg_values. This way completer/choice functions that receive parsed_args will still know a flag was used.
@@ -143,8 +143,11 @@ class AutoCompleter(object): # _ArgumentState of the current flag flag_arg_state = None + # Non-reusable flags that we've parsed matched_flags = [] - consumed_arg_values = {} # dict(action -> [values, ...]) + + # Keeps track of arguments we've seen and any tokens they consumed + consumed_arg_values...
[tests] Do not skip tests due to MaxlagTimeoutError After T242081 has been solved upstream, do not skip MaxlagTimeoutError anymore to detect such failures again.
@@ -1988,19 +1988,14 @@ class Request(MutableMapping): param_repr = str(self._params) pywikibot.log('API Error: query=\n%s' % pprint.pformat(param_repr)) - pywikibot.log(' response=\n%s' - % result) + pywikibot.log(' response=\n{}'.format(result)) raise APIError(**result['error']) except TypeError: raise RuntimeError(r...
Improvements to find bad pixels Output an image (png) of the bad pixel mask; make printing bad values optional; use known mask if already encoded
mask = pixels.mask .type = path .help = "Output mask file name" + png = pixels.png + .type = path + .help = "Bad pixel mask as image" + print_values = False + .type = bool + .help = "Print bad pixel values" } """ ) @@ -67,6 +73,13 @@ def find_constant_signal_pixels(imageset, images): for idx in images: pixels = imagese...
client: remove swarming.py put-bootstrap and put-bot-config All servers are now using luci-config. The existence of these commands is confusing. The server code will be removed later. There was no test. :)
@@ -1327,36 +1327,6 @@ def CMDcollect(parser, args): return 1 -@subcommand.usage('[filename]') -def CMDput_bootstrap(parser, args): - """Uploads a new version of bootstrap.py.""" - options, args = parser.parse_args(args) - if len(args) != 1: - parser.error('Must specify file to upload') - url = options.swarming + '/api...
SVHN dataset images are of size 32x32x3 SVHN dataset image size is 32x32x3 and not 28x28x1.
@@ -14,14 +14,14 @@ Existing Datasets +----------------------+------------+------------+----------------+------------------+ | **QMNIST** | 10 | 28x28x1 | YES | Images | +----------------------+------------+------------+----------------+------------------+ -| **SVHN** | 10 | 28x28x1 | YES | Images | -+-----------------...
Fix column in Report DiscoveryProblem HG-- branch : feature/microservices
@@ -210,7 +210,7 @@ class ReportFilterApplication(SimpleReport): title=self.title, columns=[ _("Managed Object"), _("Address"), _("Profile"), - _("Avail"), _("Last successful discovery"), + _("Administrative Domain"), _("Avail"), _("Last successful discovery"), _("Discovery"), _("Error") ], data=data)
Update the build system syntax file. This commit 1. Removes the phantoms related exec args for reasons already stated in the previous commit. 2. Adds the `kill_previous` arg for highlighting purposes.
@@ -133,7 +133,7 @@ contexts: 2: support.function.exec-arg.sublime-build 3: punctuation.definition.string.end.json set: [expect-regex-string-value, expect-colon] - - match: (")(shell|quiet|kill|update_phantoms_only|hide_phantoms_only|word_wrap)(") + - match: (")(shell|quiet|kill(?:_previous)?|update_annotations_only|wo...
Good spot by Leo on has_calls not being exclusive, Using call_args_list to get accurate list of args
@@ -215,7 +215,7 @@ def test_will_remove_csv_files_for_jobs_older_than_seven_days(notify_db, notify_ with freeze_time('2016-10-18T10:00:00'): remove_csv_files() - s3.remove_job_from_s3.assert_has_calls([call(job_1.service_id, job_1.id), call(job_2.service_id, job_2.id)]) + assert s3.remove_job_from_s3.call_args_list ==...
Extend js_api param desc from create_window() The documentation of the js_api parameter did not mention, that a promise is returned.
@@ -16,7 +16,7 @@ Create a new _pywebview_ window and returns its instance. Window is not shown un * `title` - Window title * `url` - URL to load. If the URL does not have a protocol prefix, it is resolved as a path relative to the application entry point. * `html` - HTML code to load. If both URL and HTML are specifie...
test(spanner): harden 'test_transaction_batch_update*' systests against partial success + abort Closes
@@ -24,6 +24,7 @@ import unittest import uuid import pytest +import grpc from google.rpc import code_pb2 from google.api_core import exceptions @@ -66,6 +67,10 @@ EXISTING_INSTANCES = [] COUNTERS_TABLE = "counters" COUNTERS_COLUMNS = ("name", "value") +_STATUS_CODE_TO_GRPC_STATUS_CODE = { + member.value[0]: member for ...
Add additional note about ipv6 during lxd setup Fixes
@@ -117,7 +117,9 @@ class LXDSetupView(WidgetWrap): " $ newgrp lxd\n" " $ lxc finger\n\n" "If `lxc finger` does not fail with an error you are ready " - "to re-run conjure-up and continue the installation.") + "to re-run conjure-up and continue the installation.\n\n" + "NOTE: Do NOT setup a IPv6 subnet when asked, only...
[cleanup] Always show deprecation warning for -dry option in basic.py DeprecationWarning is hidden by default. Show FutureWarning instead which is intended for end users
@@ -114,6 +114,7 @@ class BasicBot( if 'dry' in kwargs: issue_deprecation_warning('dry argument', 'pywikibot.config.simulate', 1, + warning_class=FutureWarning, since='20160124') # use simulate variable instead pywikibot.config.simulate = True
Add tag=True/False option to get_latest_version to allow returning the tag instead of the version
@@ -389,12 +389,14 @@ class BaseProjectConfig(BaseTaskFlowConfig): gh = get_github_api(github_config.username, github_config.password) return gh - def get_latest_version(self, beta=False): + def get_latest_version(self, beta=False, tag=False): """ Query Github Releases to find the latest production or beta release """ ...
tests: refact flake8 workflow drop ricardochaves/python-lint action and use `run` steps instead.
name: flake8 -on: - pull_request: +on: [pull_request] jobs: - flake8: + build: runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ '3.6', '3.7', '3.8' ] + name: Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v1 - - uses: ricardochaves/python-lint@v1.3.0 + - uses: actions/checkout@v2 ...
[CrIA] Remove .read permissions. These have been replaced by .get permissions.
@@ -119,16 +119,12 @@ def db(): role('role/resultdb.reader', [ permission('resultdb.invocations.list'), permission('resultdb.invocations.get'), - permission('resultdb.invocations.read'), permission('resultdb.testResults.list'), permission('resultdb.testResults.get'), - permission('resultdb.testResults.read'), permissio...
Handle non-int `indent_size` in .editorconfig Editorconfig allows the word `tab` to be used for `indent_size`, which will result in it using the value from `tab_width`. However, this was causing a `ValueError` because this condition was not handled.
@@ -179,6 +179,9 @@ def _update_with_config_file(file_path, sections, computed_settings): if file_path.endswith('.editorconfig'): indent_style = settings.pop('indent_style', '').strip() indent_size = settings.pop('indent_size', '').strip() + if indent_size == "tab": + indent_size = settings.pop('tab_width', '').strip()...
flags: support accessing flag value instances on the class Fixes
@@ -35,11 +35,16 @@ class flag_value: self.__doc__ = func.__doc__ def __get__(self, instance, owner): + if instance is None: + return self return instance._has_flag(self.flag) def __set__(self, instance, value): instance._set_flag(self.flag, value) + def __repr__(self): + return '<flag_value flag={.flag!r}>'.format(sel...
Fix error in Python3 AttributeError: 'range' object has no attribute 'remove'
@@ -91,7 +91,7 @@ class TestTilingMock(unittest.TestCase): # where O: complete cell, X: incomplete cell size = 4 nodes_per_cell = 8 - nodes = range(size * size * nodes_per_cell) + nodes = list(range(size * size * nodes_per_cell)) nodes.remove(nodes_per_cell * 3) hardware_graph = dnx.chimera_graph(size, node_list=nodes)...
custom fields: Move field-type inputs first in create-field form. As other data of field, such as field name, hint etc. are relative to field type, this commit moves the field type input to the first order in create field form in org settings.
<div class="new-profile-field-form wrapper"> <div class="settings-section-title new-profile-field-section-title inline-block">{{t "Add a new profile field" }}</div> <div class="alert-notification" id="admin-add-profile-field-status"></div> - <div class="control-group"> - <label for="profile_field_name" class="control-l...
Get the parser tests working again TODO: Structure tests
@@ -74,10 +74,10 @@ class FunctionDef(Structure): class Lambda(Structure): - def __init__(self, arity: int, body3: list[Structure]): - super().__init__(str(arity), body3) + def __init__(self, arity: int, body: list[Structure]): + super().__init__(str(arity), body) self.arity = arity - self.body = body3 + self.body = bo...
Use long QID for calendar and globe Wikibase use wikidata entity for date and globe by default. If the user want to use is own.
@@ -25,8 +25,8 @@ config = { 'MAXLAG': 5, 'PROPERTY_CONSTRAINT_PID': 'P2302', 'DISTINCT_VALUES_CONSTRAINT_QID': 'Q21502410', - 'COORDINATE_GLOBE_QID': 'Q2', - 'CALENDAR_MODEL_QID': 'Q1985727', + 'COORDINATE_GLOBE_QID': 'http://www.wikidata.org/entity/Q2', + 'CALENDAR_MODEL_QID': 'http://www.wikidata.org/entity/Q1985727...
DOC: Note client dir creation in CLI instructions Note that the `repo.py --init` call also sets up a client directory. A student recently ran into some confusion on this point, and it's not properly documented here.
@@ -10,7 +10,9 @@ The CLI requires a few dependencies and C extensions that can be installed with Create a TUF repository in the current working directory. A cryptographic key is created and set for each top-level role. The written Targets metadata does -not sign for any targets, nor does it delegate trust to any roles...
Option "scheduler_default_filters" is deprecated. The scheduler_default_filters option is deprecated in favor of the [scheduler]/enabled_filters option. This change updates the docs to use the enabled_filters option over the deprecated scheduler_default_filters option. Closes-Bug:
@@ -1073,15 +1073,16 @@ drives if they need access to faster disk I/O, or access to compute hosts that have GPU cards to take advantage of GPU-accelerated code. To configure the scheduler to support host aggregates, the -``scheduler_default_filters`` configuration option must contain the -``AggregateInstanceExtraSpecsF...
Adds Category Channels To Error Message Adds the channels within categories to the failure message of the command whitelist check.
@@ -250,7 +250,18 @@ def whitelist_check(**default_kwargs: t.Container[int]) -> t.Callable[[Context], ) # Raise error if the check did not pass - channels = kwargs.get("channels") + channels = set(kwargs.get("channels") or {}) + categories = kwargs.get("categories") + + # Add all whitelisted category channels + if cate...
Update contact well support. Add asymmetric tap overlap support in DRC rules. Add static nwell and pwell contact in class for measurements.
@@ -43,6 +43,8 @@ class contact(hierarchy_design.hierarchy_design): self.add_comment("implant type: {}\n".format(implant_type)) self.add_comment("well_type: {}\n".format(well_type)) + self.is_well_contact = implant_type == well_type + self.layer_stack = layer_stack self.dimensions = dimensions if directions: @@ -114,6 ...
fix: ignore PUSH_CONTENT_FOCUS_CHANGE closes
@@ -892,6 +892,7 @@ async def setup_alexa(hass, config_entry, login_obj): elif command in [ "PUSH_DELETE_DOPPLER_ACTIVITIES", # delete Alexa history "PUSH_LIST_ITEM_CHANGE", # update shopping list + "PUSH_CONTENT_FOCUS_CHANGE", # likely prime related refocus ]: pass else:
compression value set to 1 bz2 minimum compression value is 1
@@ -76,8 +76,8 @@ class DevConfig(object): self.blocks_per_chain_file = 1000 self.chain_read_buffer_size = 1024 self.binary_file_delimiter = '-_-_' - self.compression_level = 0 - self.version_number = "alpha/0.31a" + self.compression_level = 1 + self.version_number = "alpha/0.32a" self.chain_file_directory = 'data' sel...
Add test to verify comparing with deleted version works. * Add test to verify comparing with deleted version works. Fixes * Add comment
@@ -6802,7 +6802,7 @@ class TestReviewAddonVersionCompareViewSet( } ] - def test_get_deleted_file(self): + def test_compare_with_deleted_file(self): new_version = version_factory( addon=self.addon, file_kw={'filename': 'webextension_no_id.xpi'}) @@ -6862,6 +6862,35 @@ class TestReviewAddonVersionCompareViewSet( result ...
Save persistent ops as 6 digit no. With operations 0-10, it was loading in the order 0,1,10,2,3,4,... Saving with 6 digits (will user ever exceed 1 million operations?) order is preserved on reload.
@@ -4444,7 +4444,7 @@ class Elemental(Modifier): settings.clear_persistent() for i, op in enumerate(self.ops()): - op_set = settings.derive(str(i)) + op_set = settings.derive("%06i" % i) if not hasattr(op, "settings"): continue # Might be a function. sets = op.settings
Remove obsolete mention of modeling from docs It was removed in
@@ -47,12 +47,6 @@ Finally, install ``stingray`` itself: :: $ pip install -e "." -Note that this will install the package *without* the optional dependencies required by -the ``modeling`` subpackage. In order to install ``stingray`` with these dependencies -(``emcee``, ``corner`` and ``statsmodels``), execute :: - - $ ...
Enhance condition in _get_size This fix the issue
@@ -49,7 +49,7 @@ class BaseIKFile(File): def _get_size(self): self._require_file() - if not self._committed: + if not getattr(self, '_committed', False): return self.file.size return self.storage.size(self.name) size = property(_get_size)
Ensure that BigQuery queries run until they are complete, instead of until a default timeout actually make the queries against bq run synchronously Author: dlovell Closes from tsdlovell/actually-synchronous and squashes the following commits: [dlovell] ENH: actually run query synchronously
import re +import time import pandas as pd @@ -83,6 +84,16 @@ class BigQueryAPIProxy(object): def get_schema(self, table_id, dataset_id): return self.get_table(table_id, dataset_id).schema + def run_sync_query(self, stmt): + query = self.client.run_sync_query(stmt) + query.use_legacy_sql = False + query.run() + # run_s...
Enable JMX reporting of internal metrics We need to enable jmx reporting of our internal, dropwizard metrics so that they can be exposed over prometheus endpoint.
@@ -55,6 +55,7 @@ spec: - "-Dcom.datastax.driver.FORCE_NIO=true" - "-DKUBERNETES_MASTER_URL={{openshift_metrics_master_url}}" - "-DUSER_WRITE_ACCESS={{openshift_metrics_hawkular_user_write_access}}" + - "-Dhawkular.metrics.jmx-reporting-enabled" env: - name: POD_NAMESPACE valueFrom:
fix: (User Permissions) Allow user to fetch details into mapped doc Check if apply strict user permissions is enabled Accordingly restrict user permission
@@ -44,12 +44,18 @@ def map_docs(method, source_names, target_doc): def get_mapped_doc(from_doctype, from_docname, table_maps, target_doc=None, postprocess=None, ignore_permissions=False, ignore_child_tables=False): + apply_strict_user_permissions = frappe.get_system_settings("apply_strict_user_permissions") + # main i...
fix: Do not set content type for paths ending with .com To avoid unnecessary download
@@ -103,7 +103,9 @@ def set_content_type(response, data, path): response.mimetype = 'text/html' response.charset = 'utf-8' - if "." in path: + # ignore paths ending with .com to avoid unnecessary download + # https://bugs.python.org/issue22347 + if "." in path and not path.endswith('.com'): content_type, encoding = mim...
AC: fix input info for blob * AC: remove deprecated pipelined mode * Revert "AC: remove deprecated pipelined mode" This reverts commit * AC: fix input info for blob
@@ -797,7 +797,9 @@ class DLSDKLauncher(Launcher): self.original_outputs = list(self.exec_network.outputs.keys()) has_info = hasattr(self.exec_network, 'input_info') if has_info: - ie_input_info = OrderedDict([(name, data.input_data) for name, data in self.network.input_info.items()]) + ie_input_info = OrderedDict([ + ...
add list transform batch to sample mixing fix previous fix previous
@@ -397,28 +397,39 @@ class TotalPosterior(Posterior): self, n_samples: int = 1, give_mean: bool = True, - transform_batch: Optional[int] = None, + transform_batch: Optional[Union[int, List[int]]] = None, ) -> np.ndarray: """ Returns mixing bernoulli parameter for protein negative binomial mixtures (probability backgro...
Fixed the GPU Test summary issue This issue was causing failure in uploading results to telemetry database
@@ -126,7 +126,7 @@ function Main { $currentTestResult.TestResult = Get-FinalResultHeader -resultarr "ABORTED" return $currentTestResult } - $CurrentTestResult.TestSummary += New-ResultSummary -metaData "Using nVidia driver: $driver" -testName $CurrentTestData.testName + $CurrentTestResult.TestSummary += New-ResultSumm...
added check for user permissions permission check by creation and drop of a TEST db, this way the main db used is still up and running without breaking confluence by dropping it without having the possibility to re-create it.
@@ -118,7 +118,7 @@ else fi echo "Current PostgreSQL version is $(psql -V)" -echo "Step2: Get DB Host and check DB connection" +echo "Step2: Get DB Host, check DB connection and user permissions" DB_HOST=$(sudo su -c "cat ${DB_CONFIG} | grep 'jdbc:postgresql' | cut -d'/' -f3 | cut -d':' -f1") if [[ -z ${DB_HOST} ]]; th...
Make repr tag highlighting greedy Addressing before this change the tag-matching code was non-greedy, resulting in an unbalanced match if there were tags within tags. This change makes this greedy to ensure that there's a better chance of the match being balanced.
@@ -82,7 +82,7 @@ class ReprHighlighter(RegexHighlighter): base_style = "repr." highlights = [ - r"(?P<tag_start><)(?P<tag_name>[-\w.:|]*)(?P<tag_contents>[\w\W]*?)(?P<tag_end>>)", + r"(?P<tag_start><)(?P<tag_name>[-\w.:|]*)(?P<tag_contents>[\w\W]*)(?P<tag_end>>)", r'(?P<attrib_name>[\w_]{1,50})=(?P<attrib_value>"?[\w_...
[OpenCL] Avoid SelectNode ambiguous overloading * [OpenCL] Avoid SelectNode ambiguous overloading * Revert "[OpenCL] Avoid SelectNode ambiguous overloading" This reverts commit * [OpenCL] Avoid SelectNode ambiguous codegen
@@ -541,12 +541,26 @@ void CodeGenOpenCL::VisitExpr_(const OrNode* op, std::ostream& os) { } void CodeGenOpenCL::VisitExpr_(const SelectNode* op, std::ostream& os) { + std::ostringstream oss; os << "select("; - PrintExpr(op->false_value, os); + PrintExpr(op->false_value, oss); + os << CastFromTo(oss.str(), op->false_va...
removing python version < 3.9 requirement TensorFlow added support for python 3.9, so this check can be removed:
import os, sys, setuptools from setuptools import setup -# TODO remove this restriction after https://github.com/tensorflow/tensorflow/issues/44485 is resolved -if sys.version_info >= (3, 9): - # NOTE if the next line causes a syntax error, you are likely using Python 2, and need to upgrade to Python 3 - sys.exit( - f"...
A number of detections are passing locally but failing in CI/CD. I believe this is because they are not being given enough time to finish their data ingest completely. If a search fails, wait some time and run it a few more times to see if it will complete.
@@ -11,6 +11,7 @@ from typing import Union DEFAULT_EVENT_HOST = "ATTACK_DATA_HOST" DEFAULT_DATA_INDEX = "main" +FAILURE_SLEEP_INTERVAL_SECONDS = 120 def enable_delete_for_admin(splunk_host:str, splunk_port:int, splunk_password:str)->bool: try: @@ -225,7 +226,12 @@ def test_baseline_search(splunk_host, splunk_port, splu...
validate: fix a typo introduced a typo. This commit fixes it.
@@ -111,7 +111,7 @@ class ActionModule(ActionBase): display.error(msg) reason = "[{}] Reason: {}".format(host, error.reason) try: - if "schema is missing" not str(error): + if "schema is missing" not in str(error): for i in range(0, len(error.path)): if i == 0: given = "[{}] Given value for {}".format(
Update pythonpackage.yml Added python 3.5
@@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.6, 3.7, 3.8] + python-version: [3.5, 3.6, 3.7, 3.8] steps: - uses: actions/checkout@v2
gitignore: Fix format for excluding .cache/. Comments in gitignore files must be on their own line.
# * Subdirectories with several internal things to ignore get their own # `.gitignore` files. # +# * Comments must be on their own line. (Otherwise they don't work.) +# # See `git help ignore` for details on the format. ## Config files for the dev environment @@ -52,7 +54,8 @@ zulip.kdev4 *.sublime-workspace .vscode/ *...
Fix supressing messages leading a 400 error This only makes it so allowed_mentions are passed if the message is authored by the bot itself.
@@ -1156,7 +1156,7 @@ class Message(Hashable): try: allowed_mentions = fields.pop('allowed_mentions') except KeyError: - if self._state.allowed_mentions is not None: + if self._state.allowed_mentions is not None and self.author.id == self._state.self_id: fields['allowed_mentions'] = self._state.allowed_mentions.to_dict...
docs: remove duplicate breaking changes block for 0.5.0 resolves
@@ -211,11 +211,6 @@ and others in the Integrations section for more info. - models depending on `tensorflow` require `CUDA 10.0` to run on GPU instead of `CUDA 9.0` - scikit-learn models have to be redownloaded or retrained -**Breaking changes in version 0.5.0** -- dependencies have to be reinstalled for most pipeline...
StandardConnectionGadget : Fix connection drawing glitch This was fixed for connections drawn by PlugAdders and StandardNodules in but remained in StandardConnectionGadget. This should finally fix We should probably change the connection rendering API to work with V2f, and then this bug would have been impossible.
@@ -359,7 +359,7 @@ bool StandardConnectionGadget::dragEnter( const DragDropEvent &event ) bool StandardConnectionGadget::dragMove( const DragDropEvent &event ) { - updateDragEndPoint( event.line.p0, V3f( 0 ) ); + updateDragEndPoint( V3f( event.line.p0.x, event.line.p0.y, 0.0f ), V3f( 0 ) ); return true; }
Remove mutable default argument Common pitfall in python - see link below for reasons why this can cause issues.
@@ -10,12 +10,13 @@ from ..util import read_param_file, ResultDict from matplotlib import pyplot as plt -def analyze(problem, X, Y, options={}): - """High-Dimensional Model Representation (HDMR) using B-spline functions - for variance-based global sensitivity analysis (GSA) with correlated - and uncorrelated inputs. Th...
Enable test_trainer_ps in dist_autograd_test.py Summary: Pull Request resolved: Test Plan: Imported from OSS
@@ -878,7 +878,6 @@ class DistAutogradTest(RpcAgentTestFixture): # # These four test ps-trainer groups run on completely separate autograd # graphs, but they share the same set of underlying RpcAgents. - @unittest.skip("Test is flaky, see https://github.com/pytorch/pytorch/issues/28874") @dist_init def test_trainer_ps(...
Correct sentence/statement composition Incorrect statement spotted *In the simplest example of broadcasting, the scalar ``b`` is stretched to become an array ~of with the same~ shape as ``a`` so the shapes are compatible for element-by-element multiplication.*
@@ -69,7 +69,7 @@ numpy on Windows 2000 with one million element arrays. *Figure 1* *In the simplest example of broadcasting, the scalar ``b`` is - stretched to become an array of with the same shape as ``a`` so the shapes + stretched to become an array of same shape as ``a`` so the shapes are compatible for element-by...
Fixed manual-update bug Changing to a non-manual qubit will now switch the "manual" off.
@@ -734,11 +734,23 @@ class GUI: def qubit_change(self, change) -> None: self.plot_output.clear_output() new_qubit = change["new"] - if new_qubit in gui_defaults.slow_qubits: - self.manual_update_and_save_widgets["manual_update_checkbox"].value = True self.unobserve_ranges() self.unobserve_widgets() self.unobserve_plot...
Update .travis.yml Added pip install for future. Trying pyglow in python 3
@@ -31,7 +31,7 @@ before_install: # Useful for debugging any issues with conda - conda info -a # Replace dep1 dep2 ... with your dependencies - - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION atlas numpy scipy matplotlib nose pandas statsmodels coverage netCDF4 ipython xarray python-future + - conda...
Remove unneccesary variable Remove unused `buff` from `print_slow_atomic_cache_start_info()`
@@ -540,11 +540,9 @@ const char *get_core_state_name(int core_state) /* check if device is atomic and print information about potential slow start */ void print_slow_atomic_cache_start_info(const char *device_path) { - char buff[MAX_STR_LEN]; struct kcas_cache_check_device cmd_info; int ret; - get_dev_path(device_path,...
Allow more customization for image plots. More specifically, this commit adds the ability to plot a colorbar for an image and allows to specify the color range.
@@ -78,10 +78,18 @@ def AddImage(fig, origin='lower', suppress_xticks=False, suppress_yticks=False, - aspect='auto'): + aspect='auto', + vmin=None, + vmax=None): """Convenience function to plot data as an image on the given axes.""" image = axes.imshow( - data, cmap=cmap, origin=origin, aspect=aspect, interpolation='ne...
check input for parametric dqn Summary: Pull Request resolved: as titled
@@ -81,6 +81,18 @@ class ParametricDQNTrainer(DQNTrainerMixin, RLTrainerMixin, ReAgentLightningModu return optimizers + def _check_input(self, training_batch: rlt.ParametricDqnInput): + assert isinstance(training_batch, rlt.ParametricDqnInput) + assert training_batch.not_terminal.dim() == training_batch.reward.dim() ==...
SpreadsheetUI : Fix addition of columns to promoted spreadsheets We were adding the column to the driven plug rather than the driver plug, which automatically broke the connection because the children no longer matched.
@@ -1378,8 +1378,12 @@ def __addColumn( spreadsheet, plug ) : # plugs are added to spreadsheets. columnName = Gaffer.Metadata.value( plug, "spreadsheet:columnName" ) or plug.getName() - columnIndex = spreadsheet["rows"].addColumn( plug, columnName ) - valuePlug = spreadsheet["rows"]["default"]["cells"][columnIndex]["va...
issue add fix for disconnect cleanup test Simply listen to RouteMonitor's Context "disconnect" and forget contexts according to RouteMonitor's rules, rather than duplicate them (and screw it up).
@@ -297,22 +297,18 @@ class ContextService(mitogen.service.Service): finally: self._lock.release() - def _on_stream_disconnect(self, stream): + def _on_context_disconnect(self, context): """ - Respond to Stream disconnection by deleting any record of contexts - reached via that stream. This method runs in the Broker th...
Update LOCAL_TRAFFIC.yml (FortiOS 5.4) Update LOCAL_TRAFFIC.yml (FortiOS 5.4)
# messages: - error: 'LOCAL_TRAFFIC' - tag: "subtype=local" + tag: "local" values: - level: ([^ ]+) - vd: ([^ ]+) - srcip: ([^ ]+) - srcport: ([^ ]+) - srcintf: ([^ ]+) - dstip: ([^ ]+) - dstport: ([^ ]+) - dstintf: ([^ ]+) - sessiondId: ([^ ]+) - protocolId: ([^ ]+) - action: ([^ ]+) + level: (?<=level=)(.*)(?=\s+vd=)...
Fix incorrect site-packages path breaking app at runtime The keyboard app crashes at launch right now because it has outdated assumptions about the site packages folder and it tries to list things from there. This changes the path accordingly, and avoids a crash in the future if the path shouldn't be present/moved agai...
@@ -2,23 +2,29 @@ print('main.py was successfully called') import os print('imported os') +import sys +print('imported sys') from kivy import platform if platform == 'android': - print('contents of ./lib/python2.7/site-packages/ etc.') - print(os.listdir('./lib')) - print(os.listdir('./lib/python2.7')) - print(os.listd...
Fixed Viewport normalized Area Light scale application PURPOSE Fix: the Area Light scaling in Viewport doesn't change the normalized intensity. EFFECT OF CHANGE fixed: incorrect intensity normalization when scale changed in active viewport rendering mode.
@@ -198,6 +198,11 @@ def sync_update(rpr_context: RPRContext, obj: bpy.types.Object, is_updated_geome return True if is_updated_transform: + if light.type == 'AREA' and light.rpr.intensity_normalization: + # the normalized are light should be recreated to apply scale correctly + rpr_context.remove_object(light_key) + s...
Fix test dependency on what date it's being run. * Fix test dependency on what date it's being run. test_dest was unfortunately dependend on when `FileViewer` got initialized. This fixes it and makes the test run on any date.
@@ -129,11 +129,12 @@ class TestFileViewer(TestCase): self.viewer.cleanup() assert not self.viewer.is_extracted() - @freeze_time('2017-02-08 02:01:00') + @freeze_time('2017-01-08 02:01:00') def test_dest(self): - assert self.viewer.dest == os.path.join( + viewer = FileViewer(make_file(1, get_file('webextension.xpi'))) ...
changing "and" to "&&" and "or" to "||" (the operators in cpp) One of the curses from switching between python and cpp, the gcc compiler is happy to compile the words into the proper operators, but windows compiler is not.
@@ -581,7 +581,7 @@ void Tree::set_levels(int_t l_x, int_t l_y, int_t l_z){ int_t min_l = std::min(l_x, l_y); if(n_dim == 3) min_l = std::min(min_l, l_z); max_level = min_l; - if(l_x != l_y or (n_dim==3 and l_y!=l_z)) ++max_level; + if(l_x != l_y || (n_dim==3 && l_y!=l_z)) ++max_level; nx = 2<<l_x; ny = 2<<l_y; @@ -591...
Update 2)key_features.md Minor grammar/typo fixes.
@@ -19,11 +19,11 @@ You wish to pass custom error messages to the user. To do so, raise a `gr.Error( In the previous example, you may have noticed the `title=` and `description=` keyword arguments in the `Interface` constructor that helps users understand your app. -There are three arguments in `Interface` constructor ...
[tests] Fix test_writer [global] Add newlines
@@ -22,7 +22,7 @@ def test_verilog_writer(): if subckt["name"] in available_cell_generator: ws = WriteSpice(subckt["graph"],subckt["name"]+block_name_ext , subckt["ports"], subckts) ws.print_subckt(SP_FP) - WriteConst(subckt["graph"], pathlib.Path(__file__).parent, subckt["name"], subckt['ports'], pathlib.Path(__file__...
BUG: assign no longer allows inplace xarry assign no longer allows inplace, use keyword arguement assignemnt instead. Also fixed try/except loop that caught everything.
@@ -244,7 +244,7 @@ def calc_measurement_loc(self): if kk in el_keys: try: good_dir.append(int(kk)) - except: + except ValueError: logger.warning("unknown direction number [{:}]".format(kk)) # Calculate the geodetic latitude and longitude for each direction @@ -270,9 +270,7 @@ def calc_measurement_loc(self): # Assignin...
Fix _render_validation_statistics method handle None values
@@ -118,15 +118,24 @@ class ValidationResultsPageRenderer(Renderer): @classmethod def _render_validation_statistics(cls, validation_results): statistics = validation_results["statistics"] + statistics_dict = { + "evaluated_expectations": "Evaluated Expectations", + "successful_expectations": "Successful Expectations", ...
Removed lowercasing when checking slug validity This was copied from the function above but doesn't apply here.
@@ -57,7 +57,7 @@ class CustomDataFieldsForm(forms.Form): @classmethod def verify_no_profiles_missing_fields(cls, data_fields, profiles): errors = set() - slugs = {field['slug'].lower() + slugs = {field['slug'] for field in data_fields if 'slug' in field} for profile in profiles: for field in json.loads(profile.get('fi...
Skip TestLoginLogout if it is running on Appveyor APPVEYOR environment variable may be 'True' or 'true'
@@ -3707,7 +3707,7 @@ class TestLoginLogout(DefaultSiteTestCase): """Test for login and logout methods.""" - @unittest.skipIf(os.environ.get('APPVEYOR', 'false') == 'true', + @unittest.skipIf(os.environ.get('APPVEYOR', 'false') in ('true', 'True'), 'No user defined for APPVEYOR tests') def test_login_logout(self): """V...
Minor fix evaluation formula of PILLOW_VERSION Enable fillcolor option for affine transformation for Pillow >= 5.0.0 as described
@@ -766,7 +766,7 @@ def affine(img, angle, translate, scale, shear, resample=0, fillcolor=None): output_size = img.size center = (img.size[0] * 0.5 + 0.5, img.size[1] * 0.5 + 0.5) matrix = _get_inverse_affine_matrix(center, angle, translate, scale, shear) - kwargs = {"fillcolor": fillcolor} if PILLOW_VERSION[0] == '5' ...
Add Taiwan Government Open Data Taiwan Government Open Data
@@ -465,6 +465,7 @@ API | Description | Auth | HTTPS | Link | | Open Government, France | French Government Open Data | `apiKey` | Yes | [Go!](https://www.data.gouv.fr/) | | Open Government, India | Indian Government Open Data | `apiKey` | Yes | [Go!](https://data.gov.in/) | | Open Government, New Zealand | New Zealand...
Fixed a simple Typo in 'solid' decorator Fixed a Typo in solid decorator. Fixed "Optiona" to be "Optional".
@@ -289,7 +289,7 @@ def solid( name (str): Name of solid. Must be unique within any :py:class:`PipelineDefinition` using the solid. description (str): Human-readable description of this solid. - input_defs (Optiona[List[InputDefinition]]): + input_defs (Optional[List[InputDefinition]]): List of input definitions. Infer...
Update Robot program to use the new DataWriter The new DataWriter works.
@@ -451,10 +451,6 @@ void UART1_Handler(void const * argument) } else if(cmdMessage.type == cmdWRITE){ Dynamixel_SetGoalPosition(cmdMessage.motorHandle, cmdMessage.position); - - do{ - xTaskNotifyWait(0, NOTIFIED_FROM_ISR, &notification, MAX_DELAY_TIME); - }while((notification & NOTIFIED_FROM_ISR) != NOTIFIED_FROM_ISR)...
[macOS] Only cleanup directory after upload Missed it in previous enablement of uploading bazel log, we should no longer clean the directory anymore.
@@ -8,13 +8,12 @@ RAY_DIR=$(cd "${ROOT_DIR}/../../"; pwd) cd "${RAY_DIR}" -# Cleanup old entries, this is needed in macOS shared environment. -if [[ "${OSTYPE}" = darwin* ]]; then - if [[ -n "${BUILDKITE-}" ]]; then - echo "Cleanup old entries in macOS" +cleanup() { + # Cleanup the directory because macOS file system i...
zap: Adding more PATH variables Currently the mail spool is receiving messages about not being able to find `grep`, `sed` and `awk`, due to the PATH overwrite.
@@ -4,5 +4,5 @@ files: owner: ec2-user group: ec2-user content: | - PATH="/opt/python/run/venv/bin:$PATH" + PATH="/opt/python/run/venv/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin" */5 * * * * . /opt/python/current/env; cd /opt/python/current/app; ./manage.py worker_health_check > /dev/null 2>&1
Bug in stop command when run indexes specified Index was being applied after filtering by running status.
@@ -1121,6 +1121,7 @@ def _stop_runs(args, ctx): preview = cmd_impl_support.format_warn("You are about to stop the following runs:") confirm = "Stop {count} run(s)?" no_runs_help = "Nothing to stop." + if not args.runs: args.status_running = True def stop_f(selected):
Adding explicit bg definition to iframe in HTML5Renderer. Default behavior doesn't work reliably across browsers (transparent). Resolves
<style lang="scss" scoped> + @import '~kolibri.styles.definitions'; + .btn { position: absolute; top: 8px; .iframe { width: 100%; height: 100%; + background-color: $core-bg-canvas; } </style>
Fix dagit backfill page when no daemon settings are set Summary: None doesn't translate to False, graphql is expecting a bool. We should beef up test coverage once we unbreak master. Test Plan: Load dagit with blank dagster.yaml, launch a backill Reviewers: catherinewu, prha
@@ -128,4 +128,4 @@ def resolve_sensorDaemonInterval(self, _graphene_info): def resolve_daemonBackfillEnabled(self, _graphene_info): backfill_settings = self._instance.get_settings("backfill") or {} - return backfill_settings.get("daemon_enabled") + return backfill_settings.get("daemon_enabled", False)
Update Dockerfile to add requests module Otherwise tests won't run.
@@ -13,7 +13,7 @@ RUN apt-get install -y locales && \ ENV LC_ALL C.UTF-8 # do we need all of these, maybe remove some of them? -RUN pip install imageio numpy scipy matplotlib pandas sympy nose decorator tqdm pillow pytest +RUN pip install imageio numpy scipy matplotlib pandas sympy nose decorator tqdm pillow pytest req...
add plotnine package plotnine is an implementation of a grammar of graphics in Python, it is based on ggplot2
@@ -325,6 +325,7 @@ RUN pip install --upgrade mpld3 && \ pip install folium && \ pip install scikit-plot && \ pip install dipy && \ + pip install plotnine && \ ##### ^^^^ Add new contributions above here # clean up pip cache rm -rf /root/.cache/pip/* && \
Clone/Duplicate. Clone Reference, Duplicate for copy by reference, copy by value.
@@ -1733,12 +1733,12 @@ class RootNode(list): for i in range(1, 10): gui.Bind(wx.EVT_MENU, self.menu_duplicate_element_op(node, i), duplicate_menu_eop.Append(wx.ID_ANY, _("Make %d copies.") % i, "", wx.ITEM_NORMAL)) - menu.AppendSubMenu(duplicate_menu_eop, _("Soft Copy")) + menu.AppendSubMenu(duplicate_menu_eop, _("Clo...
Forward entity information on .at() TN:
@@ -604,11 +604,30 @@ def collection_get(self, coll_expr, index_expr, or_null=True): # 0-based indexes, so there is no need to fiddle indexes here. index_expr = construct(index_expr, long_type) - coll_expr = construct(coll_expr, lambda t: t.is_collection) + coll_expr = construct(coll_expr) + as_entity = coll_expr.type....
[PY3] Fix haproxyconn unit tests that are failing ``assertItemsEqual`` does not exist in Python 3. It was removed. Since ``assertItemsEqual(a, b)`` is the same thing as asserting that ``sorted(a) == sorted(b)``, we can just update the test in this manner to work in both Python 2 and 3.
@@ -161,7 +161,10 @@ class HaproxyConnTestCase(TestCase, LoaderModuleMockMixin): ''' Test listing all frontends ''' - self.assertItemsEqual(haproxyconn.list_frontends(), ['frontend-alpha', 'frontend-beta', 'frontend-gamma']) + self.assertEqual( + sorted(haproxyconn.list_frontends()), + sorted(['frontend-alpha', 'fronte...
Add files via upload Open report automatically
@@ -7,6 +7,7 @@ from six.moves.configparser import RawConfigParser from time import process_time import tarfile import shutil +import webbrowser from report import * import PySimpleGUI as sg @@ -197,6 +198,9 @@ while True: log.close() report(reportfolderbase, time, extracttype, pathto) - locationmessage = ('Report name...
[common] remove duplicated keyword argument fix fix
@@ -1265,7 +1265,7 @@ def script_main(download, download_playlist, **kwargs): download_main( download, download_playlist, URLs, args.playlist, - stream_id=stream_id, output_dir=args.output_dir, merge=not args.no_merge, + output_dir=args.output_dir, merge=not args.no_merge, info_only=info_only, json_output=json_output, ...
Fix test under Windows. The "echo" command is not necessarily available when running on Windows.
import gc +import sys import warnings import weakref @@ -13,7 +14,7 @@ def test_Command_triggers_no_warnings(): with pytest.warns(None) as record: # This is essentially how RsyncPublisher runs rsync. - with Command(["echo"]) as client: + with Command([sys.executable, "-c", "print()"]) as client: for _ in client: pass
instruments/energy_measurement: Add a `keep_raw` parameter Add a `keep_raw` parameter to control whether raw files should be deleted during teardown.
@@ -144,7 +144,13 @@ class DAQBackend(EnergyInstrumentBackend): connector on the DAQ (varies between DAQ models). The default assumes DAQ 6363 and similar with AI channels on connectors 0-7 and 16-23. - """) + """), + Parameter('keep_raw', kind=bool, default=False, + description=""" + If set to ``True``, this will prev...
[varLib.varStore] Add NO_VARIATION_INDEX Part of
@@ -7,6 +7,10 @@ from functools import partial from collections import defaultdict +NO_VARIATION_INDEX = 0xFFFFFFFF +ot.VarStore.NO_VARIATION_INDEX = NO_VARIATION_INDEX + + def _getLocationKey(loc): return tuple(sorted(loc.items(), key=lambda kv: kv[0]))
Update super-admin-new-landing-page-in-facility-plugin.feature Formatting and adding 'Examples'
@@ -14,6 +14,7 @@ Feature: New landing page for super admins in Facility plugin And I see a list of facilities on the device And I see how many classes are in each facility And I don't see the *Facility* plugin subtabs + Scenario: View facility Given there is more than one facility on the device And I am on the *Facili...
Fix docstring failures docstring copied from `AgentNotReady` class
@@ -41,6 +41,7 @@ class InvalidModelError(RasaException): """ def __init__(self, message: Text) -> None: + """Initialize message attribute.""" self.message = message super(InvalidModelError, self).__init__(message) @@ -56,6 +57,7 @@ class UnsupportedModelError(RasaException): """ def __init__(self, message: Text) -> No...
Modify method signature Internal object creation makes unittesting really hard, especially when you want to simulate side-effects. Better pass this objects as parameter to the method, which can than be mocked easily.
@@ -39,7 +39,7 @@ class DownloadWorkflow(): # Get workflow details try: - self.fetch_workflow_details() + self.fetch_workflow_details(nf_core.list.Workflows()) except LookupError: sys.exit(1) @@ -77,9 +77,12 @@ class DownloadWorkflow(): self.pull_singularity_image(container) - def fetch_workflow_details(self): - """ Fe...
Update quickstart.rst Fix typo on line 11.
@@ -8,7 +8,7 @@ Get going fast! Intended for folks familiar with setting up DevOps environments. Setting up VirtualBox ~~~~~~~~~~~~~~~~~~~~~~~ - Type "Download VirtualBox for Windows" in the search bar. -- Click on the websight by Oracle. +- Click on the website by Oracle. .. image:: development-guide/images/A1.png :wi...
swarming_bot: make task_runner more resilient to partial manifest This was broken in
@@ -197,7 +197,7 @@ class TaskDetails(object): } self.env_prefixes = { k.encode('utf-8'): [path.encode('utf-8') for path in v] - for k, v in data['env_prefixes'].iteritems() + for k, v in (data.get('env_prefixes') or {}).iteritems() } self.grace_period = data['grace_period'] self.hard_timeout = data['hard_timeout']
Remove debugging code Summary: As titled
@@ -50,9 +50,7 @@ poll( folly::Expected<folly::Unit, Error> proxy( void *frontend, void *backend, void *capture) { - LOG(INFO) << "HAHAHA"; auto rc = zmq_proxy(frontend, backend, capture); - LOG(INFO) << "HOHOHO"; if (rc == 0) { return folly::Unit(); }
[DOCS] Update docs guide: how_to_write_a_how_to_guide Update how_to_write_a_how_to_guide.rst
@@ -15,8 +15,13 @@ This guide will help you {do something.} {That something is important or useful, Steps ----- -1. First, do something bashy, like so: ``something --foo bar`` -2. Next, do something with yml: +#. First, do something bashy. + + .. code-block:: yaml + + something --foo bar + +#. Next, do something with y...