message
stringlengths
13
484
diff
stringlengths
38
4.63k
Update Manifest.toml Manifest.toml file now points to REopt.jl#newboiler
@@ -517,7 +517,9 @@ uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" [[deps.REopt]] deps = ["ArchGDAL", "Dates", "DelimitedFiles", "HTTP", "JSON", "JuMP", "LinDistFlow", "Logging", "MathOptInterface", "Roots", "Shapefile", "TestEnv"] -path = "C:\\Users\\BRATHOD\\.julia\\dev\\REopt" +git-tree-sha1 = "6f608cb544fdd6b380c580...
Improve debuggability of free/reagent Summary: Pull Request resolved: update READEME and add ForkedPdb in reagent
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. - import logging +import pdb +import sys from collections import defaultdict from typing import List, Dict @@ -86,3 +87,18 @@ class lazy_property(object): value = self._fget(obj) setattr(obj, self.__name__, value) return valu...
concatenate docs style * concatenate docs style added and highlighted keywords as in the chapters on merge and combine. * Update doc/user-guide/combining.rst * Update doc/user-guide/combining.rst
@@ -22,10 +22,10 @@ Combining data Concatenate ~~~~~~~~~~~ -To combine arrays along existing or new dimension into a larger array, you -can use :py:func:`~xarray.concat`. ``concat`` takes an iterable of ``DataArray`` -or ``Dataset`` objects, as well as a dimension name, and concatenates along -that dimension: +To combi...
Fix docs on normalization of AiryDisk2DKernel [ci skip]
@@ -697,7 +697,7 @@ class AiryDisk2DKernel(Kernel2D): 2D Airy disk kernel. This kernel models the diffraction pattern of a circular aperture. This - kernel is normalized to a peak value of 1. + kernel is normalized so that it sums to 1. Parameters ----------
when BUILD_CAFFE2_OPS is OFF, torch-python needs a direct dep on nccl Summary: tracks supporting this with CI Pull Request resolved:
@@ -692,6 +692,7 @@ if (BUILD_PYTHON) ${TORCH_SRC_DIR}/csrc/cuda/nccl.cpp ${TORCH_SRC_DIR}/csrc/cuda/python_nccl.cpp) list(APPEND TORCH_PYTHON_COMPILE_DEFINITIONS USE_NCCL) + list(APPEND TORCH_PYTHON_LINK_LIBRARIES __caffe2_nccl) if (USE_SYSTEM_NCCL) endif() endif()
chore: typo missed out in last commit
@@ -1311,7 +1311,7 @@ Object.assign(frappe.utils, { result = no_of_decimals > max_no_of_decimals ? result.toFixed(max_no_of_decimals) : result; - return result + ' ' + symbol; + return result + ' ' + map.symbol; } }
Mistakenly lost interpolation variable Dropped in
@@ -35,7 +35,9 @@ def get_cli_endpoint() -> Endpoint: # ensure that configs exist if not os.path.exists(endpoint.funcx_dir): - log.info("No existing configuration found at %s. Initializing...") + log.info( + "No existing configuration found at %s. Initializing...", endpoint.funcx_dir + ) endpoint.init_endpoint() return...
stop the tutorial build for docs deploy Removed: QISKIT_DOCS_BUILD_TUTORIALS: 'always'
@@ -24,6 +24,5 @@ jobs: env: encrypted_rclone_key: ${{ secrets.encrypted_rclone_key }} encrypted_rclone_iv: ${{ secrets.encrypted_rclone_iv }} - QISKIT_DOCS_BUILD_TUTORIALS: 'always' run: | tools/deploy_documentation.sh
Remove deprecated ironic-agent element ironic-agent is deprecated. ironic-python-agent-ramdisk is the new element to build a ramdisk with ironic-python-agent
@@ -1611,7 +1611,7 @@ DIB support for Proliant Hardware Manager To create an agent ramdisk with ``Proliant Hardware Manager``, use the ``proliant-tools`` element in DIB:: - disk-image-create -o proliant-agent-ramdisk ironic-agent fedora proliant-tools + disk-image-create -o proliant-agent-ramdisk ironic-python-agent-ra...
Explain emissions related to storage Hope this is a reasonable public explanation of what was discussed in issue Also see issue
@@ -72,6 +72,10 @@ const faq = { question: 'Do you take into account imports and exports of electricity?', answer: 'Yes, we do. Imports and exports can be see on the map as small arrows between different areas [link to question about arrows]. Detailed information can be seen in the charts shown when you click on an are...
Change session engine to db Since we dropped memcache support, we need to store user sessions in the database.
@@ -125,7 +125,7 @@ LOGIN_REDIRECT_URL = '/home' # Sessions # --------------------------------------------------------- -SESSION_ENGINE = 'django.contrib.sessions.backends.cache' +SESSION_ENGINE = 'django.contrib.sessions.backends.db' SESSION_SAVE_EVERY_REQUEST = True
Replace add-cache with init-cache for testing data tier devices These tests check that that adding devices, which are already in the cache tier, to the data tier will cause an error. init-cache causes the same effect as add-cache in this case.
@@ -103,7 +103,9 @@ class AddDataTestCase1(SimTestCase): an exception. """ devices = _DEVICE_STRATEGY() - command_line = ["--propagate", "pool", "add-cache"] + [self._POOLNAME] + devices + command_line = ( + ["--propagate", "pool", "init-cache"] + [self._POOLNAME] + devices + ) RUNNER(command_line) self.check_error( St...
Update gradescope.md Added missing word 'gen' to 'otter gen' example usages
@@ -71,19 +71,19 @@ otter gen data.csv If we needed the requirements in `requirements.txt`, we would add ``` -otter -r requirements.txt data.csv +otter gen -r requirements.txt data.csv ``` Now let's say that we maintained to different directories of tests: `tests` with public versions of tests and `hidden-tests` with h...
Corrected Aliases. Alias now run correctly again. These are dynamically created by the alias functionality.
@@ -702,7 +702,6 @@ class BindAlias(Modifier): except KeyError: pass return - self.context.register('command/bind', bind) def alias(command, *args): @@ -724,9 +723,18 @@ class BindAlias(Modifier): return context.alias[args[0]] = ' '.join(args[1:]) return - self.context.register('command/alias', alias) + def alias_execu...
Remove map element id attribute new vue api <3
<template> - <div ref="root" id="map" /> + <div ref="root" class="map" /> </template> <script lang="ts"> @@ -178,7 +178,7 @@ export default createComponent({ </script> <style lang="scss" scoped> -#map { +.map { position: absolute; top: 0; bottom: 0;
transform_code_ada.mako: replace .typ with .get_type() TN:
@@ -7,8 +7,8 @@ ${parser.parser.generate_code()} if ${parser.pos_var} /= No_Token_Index then ## Create the transform wrapper node - ${parser.res_var} := ${parser.typ.name()} - (${parser.typ.name()}_Alloc.Alloc (Parser.Mem_Pool)); + ${parser.res_var} := ${parser.get_type().name()} + (${parser.get_type().name()}_Alloc.Al...
Remove non-working log statements The monkeypatching done by this module is executed too early, before settings are fully configured, so the logging does not work, we end up with `No handlers could be found for logger "z.files.utils"`.
""" Monkey patch and defuse all stdlib xml packages and lxml. """ -import logging import sys patched_modules = ( @@ -17,11 +16,6 @@ if any(module in sys.modules for module in patched_modules): from defusedxml import defuse_stdlib # noqa -log = logging.getLogger('z.files.utils') -log.warn( - 'Calling defusedxml.defuse_s...
Removed Yahoo Weather API As of Jan. 3rd 2019 Yahoo Weather API has been retired.
@@ -865,4 +865,3 @@ API | Description | Auth | HTTPS | CORS | | [OpenWeatherMap](http://openweathermap.org/api) | Weather | `apiKey` | No | Unknown | | [Storm Glass](https://stormglass.io/) | Global marine weather from multiple sources | `apiKey` | Yes | Yes | | [Weatherbit](https://www.weatherbit.io/api) | Weather | `...
Update SlowFast_FasterRCNN_en.md Add SlowFast_FasterRCNN mAP and model (English version)
@@ -65,6 +65,12 @@ python main.py --test \ -c configs/detection/ava/ava.yaml ``` + +| architecture | depth | Pretrain Model | frame length x sample rate | MAP | AVA version | model | +| ------------- | ------------- | ------------- | ------------- | ------------- | ------------- |------------- | +| SlowFast | R50 | [Ki...
Fix `'AppFuture' object does not support indexing` Fixes
@@ -35,7 +35,7 @@ def run_test(): outputs=['{0}/hello.txt'.format(outdir), '{0}/this.txt'.format(outdir), '{0}/cat.txt'.format(outdir)]) - print(f[0].result()) + print(f.result()) time.sleep(0.1) assert 'hello.txt' in os.listdir(outdir), "hello.txt is missing"
langkit.expressions: handle function annotations in This is necessary to start adding type hints to the functions that are decorated with and TN:
@@ -435,27 +435,35 @@ class DocumentedExpression: elif not inspect.isfunction(func): return 'expr', ['???'] - args, varargs, keywords, defaults = inspect.getargspec(func) + params = list(inspect.signature(func).parameters.values()) + varargs: Opt[str] = None + kwargs: Opt[str] = None + if params and params[-1].kind == ...
expresions.envs.is_visible_from: fix typo in docstring TN: minor
@@ -287,9 +287,9 @@ def is_visible_from(referenced_env, base_env): Expression that will return whether an env's associated compilation unit is visible from another env's compilation unit. - TODO: This is mainly exposed on envs because the CompilationUnit type is - not exposed in the DSL yet. We might want to change tha...
add collection of keywords per rule In reference to issue this commit aims to add an initial set of keywords per rule. These keywords will be later in the "rule" bot command in order to make rule identification easier
@@ -124,35 +124,44 @@ class RulesView(APIView): return Response([ ( - f"Follow the {pydis_coc}." + f"Follow the {pydis_coc}.", + {"coc", "conduct", "code"} ), ( - f"Follow the {discord_community_guidelines} and {discord_tos}." + f"Follow the {discord_community_guidelines} and {discord_tos}.", + {"guidelines", "discord_...
Remove safeKeywords from VISAAdapter Implemented by
@@ -57,14 +57,6 @@ class VISAAdapter(Adapter): resource_name = "GPIB0::%d::INSTR" % resource_name self.resource_name = resource_name self.manager = pyvisa.ResourceManager(visa_library) - safeKeywords = [ - 'resource_name', 'timeout', 'chunk_size', 'lock', 'query_delay', 'send_end', - 'read_termination', 'write_terminat...
Minor typo in IP adress 127.0.01 replaced by 127.0.0.1
@@ -67,7 +67,7 @@ You can start the Datasette process running using the following:: You can confirm that Datasette is running on port 8000 like so:: - curl 127.0.01:8000/-/versions.json + curl 127.0.0.1:8000/-/versions.json # Should output JSON showing the installed version Datasette will not be accessible from outside...
Update TensorFlow version in development_guide.rst Change TensorFlow 1.3 references to TensorFlow 2.0. Remove instructions for installing TensorFlow 1.3 with older version of Python.
@@ -42,39 +42,20 @@ importing StrawberryFields in Python. TensorFlow support ------------------ -To use Strawberry Fields with TensorFlow, version 1.3 of -TensorFlow is required. This can be installed alongside Strawberry Fields +To use Strawberry Fields with TensorFlow, version 2.0 of +TensorFlow (or higher) is requir...
Update documentation of 3D Slicer extension Fixes
medical image informatics, image processing, and three-dimensional visualization. -You can download and install Slicer 4.11 from -`their download website <https://download.slicer.org/>`_ or, if you are on -macOS, using `Homebrew <https://docs.brew.sh/>`_: -``brew cask install slicer-nightly``. - TorchIO provides a 3D S...
Fix python client backcompat tests Summary: These were using the wrong folder, so were never generating any snapshots Test Plan: BK, now fails this test Reviewers: alangenfeld, sidkmenon, rexledesma
from typing import Iterator import pytest +from dagster.utils import file_relative_path from dagster_graphql.schema import create_schema from gql import Client, gql @@ -12,7 +13,7 @@ def get_validator_client() -> Client: def generate_legacy_query_strings() -> Iterator[str]: - for (dir_name, _, file_names) in os.walk("....
Separate cache key for ContentNodeSlim ancestors Not sure if cache entries would collide with the ones from the ContentNodeViewset, so just to make sure, let's separate these into two separate keys, once for each of the Viewsets.
@@ -519,7 +519,7 @@ class ContentNodeSlimViewset(viewsets.ReadOnlyModelViewSet): @detail_route(methods=['get']) def ancestors(self, request, **kwargs): - cache_key = 'contentnode_ancestors_{pk}'.format(pk=kwargs.get('pk')) + cache_key = 'contentnode_slim_ancestors_{pk}'.format(pk=kwargs.get('pk')) if cache.get(cache_ke...
[varLib.merger] Handle missing PairPos format1/2 subtables in AligningMerger Fixes The Format2 is still failing in my test case. Investigating.
@@ -280,7 +280,11 @@ def _PairPosFormat1_merge(self, lst, merger): # Merge everything else; makes sure Format is the same. merger.mergeObjects(self, lst, exclude=('Coverage', - 'PairSet', 'PairSetCount')) + 'PairSet', 'PairSetCount', + 'ValueFormat1', 'ValueFormat2')) + + self.ValueFormat1 = reduce(int.__or__, [l.Value...
Update ATen doc with optional syntax Summary: Update the readme to reflect the recent optional syntax change. Pull Request resolved:
@@ -81,6 +81,21 @@ signature. - `*` is a special sentinel argument, which doesn't translate into an actual argument, but indicates that in the Python bindings, any subsequent arguments must be specified as keyword arguments (and cannot be provided positionally). +- `?` is trailing question mark that annotate an argumen...
correct way to remove prefix Tested-by: Build Bot
@@ -36,10 +36,9 @@ class DesignDocumentNamespace(Enum): @classmethod def unprefix(cls, name): - # could have _design/... - name = name.lstrip('_design/') - # could have _dev - return name.lstrip('_dev') + for prefix in ('_design/', '_dev'): + name = name[name.startswith(prefix) and len(prefix):] + return name
REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf.example: fix old url link fix old url link from to
# This ruleset allows you to control how ModSecurity will handle traffic # originating from Authorized Vulnerability Scanning (AVS) sources. See # related blog post - -# http://blog.spiderlabs.com/2010/12/advanced-topic-of-the-week-handling-authorized-scanning-traffic.html +# https://www.trustwave.com/en-us/resources/b...
skip the _count() for get() operations too. We'll leave the full counting to getz() operations for now.
@@ -162,8 +162,10 @@ class DiskQueue(OKTypesMixin): with open(fname, 'rb') as fh: ret = self.decompress(fh.read()) ret = ret, self.read_meta(fname) + sz = os.stat(fname).st_size self.unlink_(fname) - self._count() + self.cn -= 1 + self.sz -= sz return ret def getz(self, sz=SPLUNK_MAX_MSG):
Blocks-Backend-Events add change event to TabItem
@@ -87,6 +87,16 @@ class TabItem(BlockContext): def get_template_context(self): return {"label": self.label} + def change(self, fn: Callable, inputs: List[Component], outputs: List[Component]): + """ + Parameters: + fn: Callable function + inputs: List of inputs + outputs: List of outputs + Returns: None + """ + self.s...
Update test_dwavecliquesampler.py Add test_qubit_coupling_range
@@ -133,6 +133,15 @@ class TestDWaveCliqueSampler(unittest.TestCase): with self.assertRaises(ValueError): chimera_sampler.sample(bqm) + def test_qubit_coupling_range(self): + n = pegasus_sampler.largest_clique_size + + bqm = dimod.BinaryQuadraticModel({}, + {(u, v): -2 for u in range(n) for v in range(u+1, n)}, 'SPIN')...
Add self.sf and self.tooling to the CumulusCI robot library for access to Salesforce REST API's
@@ -4,6 +4,7 @@ from cumulusci.core.exceptions import TaskNotFoundError from cumulusci.core.exceptions import TaskOptionsError from cumulusci.core.config import TaskConfig from robot.libraries.BuiltIn import BuiltIn +from simple_salesforce import Salesforce class CumulusCI(object): """ Library for accessing CumulusCI f...
Fix generic export corner case Resolves issue where exporting a generic pipeline shows no options when no runtime configurations are defined
@@ -111,9 +111,15 @@ const getAllPaletteNodes = (palette: any): any[] => { return nodes; }; -const isRuntimeTypeAvailable = (data: IRuntimeData, type: string): boolean => { - const configs = data.platforms.find(p => p.id === type)?.configs ?? []; - return configs.length > 0; +const isRuntimeTypeAvailable = (data: IRunt...
(ambassador-ratelimit) Make cross-compilation work Originally-Committed-To: Originally-Committed-As:
@@ -19,7 +19,7 @@ $(bins): %: FORCE vendor $(GO) install $(pkg)/cmd/$@ $(bins:%=image/%): %: FORCE vendor - $(IMAGE_GO) install $(pkg)/cmd/${@:image/%=%} + $(IMAGE_GO) build -o ${@} $(pkg)/cmd/${@:image/%=%} .SECONDARY: # The only reason .DELETE_ON_ERROR is off by default is for historical
vagrant: remove centos/8 workaround The CentOS 8 vagrant box has finally been updated [1] with a recent version (the latest one 2011 which means CentOS 8.3). We don't need to download the vagrant libvirt box with a direct url anymore from the CentOS infrastructure. [1]
#!/bin/bash -vagrant box remove --force --provider libvirt --box-version 1905.1 centos/8 || true -vagrant box remove --force --provider libvirt --box-version 0 centos/8 || true -vagrant box add --provider libvirt --name centos/8 https://cloud.centos.org/centos/8/vagrant/x86_64/images/CentOS-8-Vagrant-8.3.2011-20201204....
Update apt_unclassified.txt > apt_tinyscouts
@@ -1573,9 +1573,3 @@ am.my-zo.org # Reference: https://www.virustotal.com/gui/file/c07a332b932a211c5477d3a9941c5ee308aa3463eb3ed3dd1ddba09987261aba/detection watchcartoon-live.org - -# Reference: https://twitter.com/ShadowChasing1/status/1552595370961944576 -# Reference: https://www.virustotal.com/gui/file/fb92611e326...
some small fixes to edge case failures of elemental generator. Move dataframe concatentation to base generator evaluate method
@@ -130,13 +130,14 @@ class ElementalFeatureGenerator(BaseGenerator): def __init__(self, composition_df, feature_types=None, remove_constant_columns=False): super(BaseGenerator, self).__init__() self.composition_df = composition_df + if type(self.composition_df) == pd.Series: + self.composition_df = pd.DataFrame(self.c...
Fix some spelling and grammar in README.md Fix some spelling and grammar in the readme up to and including "Time Estimate to Set Up a RaspiBlitz". (includes minor subjective improvements)
![RaspiBlitz](pictures/raspiblitz.jpg) -**The RaspiBlitz is a do-it-yourself Lightning Node based on LND running together with a Bitcoin-Fullnode on a RaspberryPi 3/4 - with a HDD/SSD and an nice display for easy setup & monitoring.** +**The RaspiBlitz is a do-it-yourself Lightning Node based on LND running together wi...
Remove unique constraint before using `GenericForeignKey` in `WorkflowState` Prevent migrations crash on SQLite before landed in Django
@@ -10,6 +10,10 @@ class Migration(migrations.Migration): ] operations = [ + migrations.RemoveConstraint( + model_name="workflowstate", + name="unique_in_progress_workflow", + ), migrations.AlterField( model_name="workflowstate", name="page", @@ -54,10 +58,6 @@ class Migration(migrations.Migration): name="workflowstate...
allow skipping warnings It would be useful to not show these warning messages if there are more than one valid configuration method.
@@ -3244,7 +3244,7 @@ def get_cloud_config_value(name, vm_, opts, default=None, search_global=True): return value -def is_provider_configured(opts, provider, required_keys=()): +def is_provider_configured(opts, provider, required_keys=(), log_message=True): ''' Check and return the first matching and fully configured c...
Simplify PR template This PR simplifies the Pull request template to be identical to the new simpler template used by cuDF, adding in #rapidsai/cudf#10774 Closes Authors: - Mark Harris (https://github.com/harrism) Approvers: - AJ Schmidt (https://github.com/ajschmidt8) - Bradley Dice (https://github.com/bdice) URL:
-<!-- - -Thank you for contributing to cuSpatial :) - -Here are some guidelines to help the review process go smoothly. - -1. Please write a description in this text box of the changes that are being - made. - -2. Please ensure that you have written units tests for the changes made/features - added. - -3. If you are cl...
Fix return URL when deleting a peering session. After deleting a peering session the user should be redirected to the IX the peering session was belonging.
@@ -240,4 +240,6 @@ class PeeringSessionEdit(AddOrEditView): class PeeringSessionDelete(DeleteView): model = PeeringSession - # return redirect('peering:ix_details', slug=peering_session.internet_exchange.slug) + + def get_return_url(self, obj): + return obj.internet_exchange.get_absolute_url()
dashboard: if no host is available, let's just skip these plays. If there is no host available, let's just skip these plays. Closes:
status: "Complete" end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" -- hosts: "{{ groups[mgr_group_name] | default(groups[mon_group_name]) }}" +# using groups[] here otherwise it can't fallback to the mon if there's no mgr group. +# adding an additional | default(omit) in case where no monitors are present (external ...
ready for PR fixed argparser
@@ -123,7 +123,7 @@ def plot_histogram(hist_data): # pragma: no cover plt.xlabel('Confidence') plt.ylabel('Number of Samples') fig = plt.gcf() - fig.set_size_inches(15, 15) + fig.set_size_inches(10, 10) fig.savefig(cmdline_args.histogram, bbox_inches='tight') @@ -154,7 +154,7 @@ def get_evaluation_metrics(targets, pred...
project_file.mako: refactor variables for compiler switches This refactoring introduces new variables to hold compiler switches. This makes it possible in language extensions to conveniently use the appropriate set of options for hand written source files. TN:
@@ -134,12 +134,14 @@ library project ${lib_name} is null; end case; - for Default_Switches ("Ada") use - Mode_Args & Ada_Mode_Args & Generated_Ada_Cargs; - for Default_Switches ("C") use Mode_Args & C_Mode_Args; + Common_Ada_Cargs := Mode_Args & Ada_Mode_Args; + Common_C_Cargs := Mode_Args & C_Mode_Args; + + for Defau...
fix minor error: GCNLayerSAGE->GraphSAGELayer fix minor error: GCNLayerSAGE->GraphSAGELayer
@@ -78,15 +78,15 @@ class GraphSAGE(nn.Module): self.layers = nn.ModuleList() # input layer - self.layers.append(GCNLayerSAGE(in_feats, n_hidden, activation=activation, + self.layers.append(GraphSAGELayer(in_feats, n_hidden, activation=activation, dropout=dropout, use_pp=use_pp, use_lynorm=True)) # hidden layers for i ...
Two qubit tomo cardinal Finished work on the two qubit cardinal tomo. Needs to be tested.
@@ -47,26 +47,61 @@ def two_qubit_off_on(q0, q1, RO_target='all'): def two_qubit_tomo_cardinal(cardinal, q0, q1, - RO_target, - timings_dict, - verbose=False): - # TODO: docstring + RO_target): + ''' + Cardinal tomography for two qubits. + + Args: + cardinal (int) : index of prep gate + q0, q1 (str) : target qubits for...
Receive MPP: Use persisted payment status to decide whether to fulfill HTLCs. Without this commit, we might timeout a part of a payment if the client is shut down before all parts are fulfilled.
@@ -1614,27 +1614,26 @@ class LNWallet(LNWorker): def add_received_htlc(self, short_channel_id, htlc: UpdateAddHtlc, expected_msat: int) -> Optional[bool]: """ return MPP status: True (accepted), False (expired) or None """ payment_hash = htlc.payment_hash - mpp_status, htlc_set = self.received_htlcs.get(payment_hash, ...
Fix PyPI uploading by selecting a particular CPython version Thanks to
@@ -32,8 +32,8 @@ jobs: - name: Make packages run: python setup.py sdist bdist_wheel - name: Publish package on PyPI - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@f91f98d65eb3eb032447201d64f2c25d67c28efe + if: matrix.python-version == 3.9 && github.ev...
Use QubitId in stepresult DM. fixes .
@@ -781,26 +781,26 @@ class StepResult: and non-zero floats of the specified accuracy.""" return wave_function.dirac_notation(self.state(), decimals) - def density_matrix(self, indices: Iterable[int] = None) -> np.ndarray: + def density_matrix(self, qubits: List[ops.QubitId] = None) -> np.ndarray: """Returns the densit...
Bump the lambda version So it matches the version on AWS
@@ -58,7 +58,7 @@ DD_SOURCE = "ddsource" DD_CUSTOM_TAGS = "ddtags" DD_SERVICE = "service" DD_HOST = "host" -DD_FORWARDER_VERSION = "1.0.2" +DD_FORWARDER_VERSION = "1.2.1" # Pass custom tags as environment variable, ensure comma separated, no trailing comma in envvar! DD_TAGS = os.environ.get("DD_TAGS", "")
Fix broken line spacing in Paragraph The line_spacing kwarg was missing when creating Text mobjects; this adds it.
@@ -442,7 +442,7 @@ class Paragraph(VGroup): VGroup.__init__(self, **config) lines_str = "\n".join(list(text)) - self.lines_text = Text(lines_str, **config) + self.lines_text = Text(lines_str, line_spacing=line_spacing, **config) lines_str_list = lines_str.split("\n") self.chars = self.gen_chars(lines_str_list)
Update deployment.rst User feedback change
@@ -160,7 +160,6 @@ Upgrade Mattermost Downgrade Mattermost Server </upgrade/downgrading-mattermost-server> Version archive </upgrade/version-archive> - Stay up to date with the latest features and improvements. * :doc:`Upgrade Mattermost Server </upgrade/upgrading-mattermost-server>` - Learn the basics of upgrading yo...
Add 3 novel source Add 3 novel source
@@ -32,11 +32,13 @@ List of supported sites are given below. - https://novelraw.blogspot.com - https://volarenovels.com - https://webnovel.online +- https://wordexcerpt.com/ - https://wuxiaworld.online - https://www.asianhobbyist.com - https://www.idqidian.us - https://www.jieruihao.cn/ - https://www.machine-translatio...
sep: drop height_percent compatibility This has been deprecated for quite some time.
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -from libqtile.log_utils import logger from libqtile.widget import base @@ -41,14 +40,7 @@ class Sep(base._Widget): ), ] - def __init__(self, height_percent=None, **config): - # 'height_percent' was replaced by 'size_percent' si...
Upgrade Node to v14 Fix
-deb https://deb.nodesource.com/node_12.x buster main -deb-src https://deb.nodesource.com/node_12.x buster main +deb https://deb.nodesource.com/node_14.x buster main +deb-src https://deb.nodesource.com/node_14.x buster main
Update deafrica-crop-extent.yaml added pub
@@ -64,6 +64,9 @@ DataAtWork: URL: https://www.africageoportal.com/pages/digital-earth-africa AuthorName: Digital Earth Africa Contributors Publications: + - Title: "Cropland Extent is now available for the entire African continent" + URL: https://www.digitalearthafrica.org/media-center/blog/cropland-extent-now-availab...
restart_policy can not be None security_groups is a dictionary variable, but the way to judge is if container.restart_policy is not None eg. (Pdb) container.restart_policy {} (Pdb) container.restart_policy is not None True Closes-Bug:
@@ -181,7 +181,7 @@ class DockerDriver(driver.ContainerDriver): if container.cpu is not None: host_config['cpu_quota'] = int(100000 * container.cpu) host_config['cpu_period'] = 100000 - if container.restart_policy is not None: + if container.restart_policy: count = int(container.restart_policy['MaximumRetryCount']) nam...
Always add unique sort keys when sorting This avoids the logs being filled with warnings from the sort utils about unstable sorting order. "Unique keys not in sort_keys. The sorting order may be unstable."
@@ -222,8 +222,7 @@ class CommonDbMixin(object): if sorts: sort_keys = db_utils.get_and_validate_sort_keys(sorts, model) sort_dirs = db_utils.get_sort_dirs(sorts, page_reverse) - if limit: - # we always want deterministic results for limit subqueries + # we always want deterministic results for sorted queries # so add ...
Readme Update 2 * Update README.rst Adds the instructions to install pycrypto-2.6.1 and fixes spelling errors. * Update README.rst * Update README.rst multiple packages with one call
@@ -231,10 +231,10 @@ could lead to version conflicts. :: - # uninstall pycryto & pycryptodome | reinstall pycryptodome-3.6.1 + # uninstall pycrypto & pycryptodome | reinstall pycrypto-2.6.1 & pycryptodome-3.6.1 - pip uninstall pycryto pycryptodome - pip install pycryptodome==3.6.1 + pip uninstall pycrypto pycryptodome...
Fix replacing targets in add_targets() Match the pattern in add_target() where if the filepath already exists in roleinfo['paths'] it is updated to replace the existing entry with the new fileinfo.
@@ -2027,10 +2027,10 @@ class Targets(Metadata): for relative_target in relative_list_of_targets: if relative_target not in roleinfo['paths']: logger.debug('Adding new target: ' + repr(relative_target)) - roleinfo['paths'].update({relative_target: {}}) else: logger.debug('Replacing target: ' + repr(relative_target)) + ...
modified proper families renderLocal is legacy, should be removed in the future
@@ -12,7 +12,7 @@ class ExtractLocalRender(openpype.api.Extractor): order = openpype.api.Extractor.order - 0.47 label = "Extract Local Render" hosts = ["aftereffects"] - families = ["render"] + families = ["renderLocal", "render.local"] def process(self, instance): stub = get_stub()
Per OVS config advice set long max-idle time. ovs-vsctl --no-wait set Open_vSwitch . other_config:max-idle=50000
@@ -21,6 +21,7 @@ ping -c 1 127.0.0.1 || exit 1 echo "========== Starting OVS =========================" /usr/local/share/openvswitch/scripts/ovs-ctl start || exit 1 ovs-vsctl show || exit 1 +ovs-vsctl --no-wait set Open_vSwitch . other_config:max-idle=50000 # enable fast reuse of ports. sysctl -w net.netfilter.nf_conn...
User agent was not correctly resolved. This is because of ``'useragent' in Config.items('network')`` check. Config.items('network') returns list of tuples so 'useragent' is never in the list. Corrected by using .has_option
@@ -331,10 +331,7 @@ class LoaderBase(object): else: # read from internet request = urllib_request.Request(filename) - if ( - Config.has_section('network') - and 'useragent' in Config.items('network') - ): + if Config.has_option('network', 'useragent'): useragent = Config.get('network', 'useragent') if useragent: reque...
[microNPU] Add relu6 relu_n1_to_1 test cases for Ethos-U Tests are extended with cases with activations relu6 and relu_n1_to_1. Test cases contain conv2d operation + activation because separate activation is not offloaded to NPU.
@@ -1132,6 +1132,65 @@ def test_tflite_leaky_relu(accel_type, ifm_shape, alpha): ) +# conv2d + relu_n1_to_1 is used because separate activation is not offloaded to NPU. +def test_tflite_relu_n1_to_1(): + np.random.seed(0) + accel_type = "ethos-u55-256" + ifm_shape = (1, 55, 34, 3) + kernel_shape = (3, 2) + strides = (1...
fix test Summary: Pull Request resolved:
@@ -6237,9 +6237,7 @@ a") m = M() graph = str(m.graph) - print(graph) - return - self.assertTrue(graph.count("aten::add") == 4) + self.assertTrue(graph.count("aten::add") == 5) self.assertTrue("python" not in graph) def test_script_nested_mod_list(self):
Update run-tests.yml allow tests to proceed even if linting doesn't return 0
@@ -70,7 +70,11 @@ jobs: echo "source $(pwd)/gef.py" > ~/.gdbinit gdb -q -ex 'gef missing' -ex 'gef help' -ex 'gef config' -ex start -ex continue -ex quit /bin/pwd - - name: Run Tests + - name: Run linter + continue-on-error: true run: | make lint + + - name: Run Tests + run: | make test
Change file staging to use decorator is deprecated with a warning, which means before this commit, an App deprecation warning was issued when using staging.
@@ -6,7 +6,7 @@ import concurrent.futures as cf from parsl.data_provider.scheme import GlobusScheme from parsl.executors.base import ParslExecutor from parsl.data_provider.globus import get_globus -from parsl.app.app import App +from parsl.app.app import python_app logger = logging.getLogger(__name__) @@ -175,19 +175,1...
Add docs on permanent session storage Hopefully this clarifies a couple of recent issues.
@@ -40,6 +40,20 @@ An example usage to store a users colour preference would be, session['colour'] = colour return redirect(url_for('index')) +Permanent Sessions +------------------ + +The cookies used by default are not set to be permanent (deleted when +the browser's session ends) to have permanent cookies +``session...
Fix half-float conversion ops to handle tensors larger than 2B of params Summary: Pull Request resolved: As desc.
@@ -12,7 +12,7 @@ bool FloatToHalfOp<CPUContext>::RunOnDevice() { at::Half* out = output->template mutable_data<at::Half>(); auto N = input.numel(); - for (auto i = 0; i < N; i++) { + for (size_t i = 0; i < N; i++) { out[i] = data[i]; } @@ -28,7 +28,7 @@ bool HalfToFloatOp<CPUContext>::RunOnDevice() { float* out = outp...
[Tweets] Clarify rate limiting error Cleanup loop code more to prevent trying to create the autotweet loop when no credentials are set or for some reason the api breaks.
@@ -72,9 +72,19 @@ class Tweets(getattr(commands, "Cog", object)): async def start_stream(self): await self.bot.wait_until_ready() while self is self.bot.get_cog("Tweets"): - if self.mystream is None: - api = await self.authenticate() + if not await self.config.api.consumer_key(): + # Don't run the loop until tokens ar...
[CircleCI] Make PR build manager dependent on few worker jobs(#1908) Just a proof of concept change, shows how it could be done to avoid wasting `build-manager` cycles waiting for the job to finish.
@@ -448,6 +448,10 @@ workflows: ignore: - master - pytorch_tutorial_pr_build_manager: + requires: + - pytorch_tutorial_pr_build_worker_17 + - pytorch_tutorial_pr_build_worker_18 + - pytorch_tutorial_pr_build_worker_19 filters: branches: ignore:
Add a docs status badge Always passing... travis doesn't have a specific deploy badge
@@ -8,6 +8,7 @@ A collection of environments for *highway driving* and tactical decision-making </p> [![Build Status](https://travis-ci.org/eleurent/highway-env.svg?branch=master)](https://travis-ci.org/eleurent/highway-env) +[![Docs Status](https://media.readthedocs.org/static/projects/badges/passing.svg)](https://ele...
Update README.md Summary: Clarify that Redis Cluster is not supported. Also see Closes
@@ -79,7 +79,7 @@ To run a benchmark: 1. Copy the benchmark tool to all participating machines 2. Start a Redis server on any host (either a client machine or one of - the machines participating in the test). + the machines participating in the test). Note that Redis Cluster is **not** supported. 3. Determine some uniq...
Fix format cache.rst Fix format in doc/source/admin/cache.rst : Fix indentation. Add two missing bullet points.
@@ -121,7 +121,7 @@ To queue an image for prefetching, you can use one of the following methods: you may call ``PUT /queued-images/<IMAGE_ID>`` to queue the image with identifier ``<IMAGE_ID>`` - Alternately, you can use the ``glance-cache-manage`` program to queue the +* Alternately, you can use the ``glance-cache-man...
[IR] Remove shadowing in IRSubstituteWithDataTypeLegalization Previously, the `IRSubstituteWithDataTypeLegalization` class implemented some virtual functions of `DataTypeLegalizer`, but not all. As a result, some compilers gave warnings that the base class methods were being shadowed. This commit adds the `using` dec...
@@ -814,6 +814,9 @@ class IRSubstituteWithDataTypeLegalization : public DataTypeLegalizer { explicit IRSubstituteWithDataTypeLegalization(std::function<Optional<PrimExpr>(const Var&)> vmap) : vmap_(vmap) {} + using DataTypeLegalizer::VisitExpr_; + using DataTypeLegalizer::VisitStmt_; + PrimExpr VisitExpr_(const VarNode...
Swaps the base address for g4 IWDG and WWDG. The two addresses were incorrectly reverted.
@@ -5,7 +5,7 @@ _delete: _add: WWDG: description: System window watchdog - baseAddress: 0x40003000 + baseAddress: 0x40002C00 addressBlock: offset: 0x0 size: 0x4 @@ -58,7 +58,7 @@ _add: bitWidth: 1 IWDG: description: WinWATCHDOG - baseAddress: 0x40002C00 + baseAddress: 0x40003000 addressBlock: offset: 0x0 size: 0x400
Framework/Workload: Utilize package_names during package resolution Iterate through available package names when resolving an apk file from the host.
@@ -562,6 +562,7 @@ class PackageHandler(object): msg = 'Cannot Resolve package; No package name(s) specified' raise WorkloadError(msg) + if self.package_name: self.apk_file = context.resolver.get(ApkFile(self.owner, variant=self.variant, version=self.version, @@ -569,6 +570,21 @@ class PackageHandler(object): exact_ab...
Ensure sql version is right for upsert linux distributions can differs in versions
@@ -245,13 +245,13 @@ class SQLiteDatabase(db_base.BaseDatabase): table_columns = table[1] # Doing many sqlite operations at the same makes the performance much worse (especially on Kodi 18) # The use of 'executemany' and 'transaction' can improve performance up to about 75% !! - if G.PY_IS_VER2: + if common.is_less_ve...
Update centos_bootstrap.sh * Update centos_bootstrap.sh added changes to make yeti run on centos. * Update to centos_bootstrap.sh This is a patch for the Centos bootstrap script please test using Centos. I also added a fix for the uwsgi service. * Update centos_bootstrap.sh
cat << EOF > /etc/yum.repos.d/mongodb-org-4.0.repo [mongodb-org-4.0] name=MongoDB Repository -baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/ +baseurl=https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/4.0/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/s...
BUG: fixed netcdf `pandas_format` Fixed setting `pandas_format` attribute to be done during initialization.
@@ -66,11 +66,13 @@ _test_download_ci = {'': {'': False}} # ---------------------------------------------------------------------------- # Instrument methods -def init(self): +def init(self, pandas_format=True): """Initialize the Instrument object with instrument specific values.""" self.acknowledgements = "Acknowledge...
slightly better error message for unconnected input Test Plan: eyes Reviewers: prha
@@ -447,7 +447,8 @@ def _validate_inputs(dependency_structure, solid_dict): ): raise DagsterInvalidDefinitionError( 'Input "{input_name}" in solid "{solid_name}" is not connected to ' - 'any outputs and can not be hydrated from configuration, creating an impossible to execute pipeline. ' + 'the output of a previous sol...
Info: simplify channel redirection for the user command `in_whitelist_check` is a convenient utility that does the same thing as the previous code.
@@ -15,7 +15,7 @@ from bot import constants from bot.bot import Bot from bot.decorators import in_whitelist, with_role from bot.pagination import LinePaginator -from bot.utils.checks import InWhitelistCheckFailure, cooldown_with_role_bypass, with_role_check +from bot.utils.checks import cooldown_with_role_bypass, in_wh...
stylechecks: implement check for __future__ imports TN:
@@ -386,6 +386,9 @@ class PythonLang(LanguageChecker): '(?P<remaining>.*)') from_import_re = re.compile('^from (?P<name>[a-zA-Z0-9_.]+) import.*') + future_expected = {'absolute_import', 'division', 'print_function', + 'unicode_literals'} + def check(self, report, filename, content, parse): self.custom_check(report, fi...
fix(stock_info_sh_name_code): fix stock_info_sh_name_code interface fix stock_info_sh_name_code interface
@@ -695,7 +695,7 @@ if __name__ == "__main__": print(futures_zh_realtime_df) futures_zh_minute_sina_df = futures_zh_minute_sina( - symbol="V2201", period="5" + symbol="TF2009", period="1" ) print(futures_zh_minute_sina_df)
Remove assumption of Gil in CandidateBlock The gil may not always be aquired during processing in CandidateBlock.
@@ -94,7 +94,8 @@ impl CandidateBlock { } pub fn previous_block_id(&self) -> String { - let py = unsafe { cpython::Python::assume_gil_acquired() }; + let gil = cpython::Python::acquire_gil(); + let py = gil.python(); self.block_builder .getattr(py, "previous_block_id") .expect("BlockBuilder has no attribute 'previous_b...
DOC: Instrument docstrings Added missing docstrings to Instrument `__repr__` and `__str__` methods.
@@ -1052,7 +1052,7 @@ class Instrument(object): self._password_req = False def __repr__(self): - # Print the basic Instrument properties + """ Print the basic Instrument properties""" out_str = "".join(["Instrument(platform='", self.platform, "', name='", self.name, "', sat_id='", self.sat_id, "', clean_level='", self....
Fixed invalid property access Supposed to be `__data__` not `_data`.
@@ -5124,7 +5124,7 @@ class Model(with_metaclass(ModelBase, Node)): self.__rel__.get(foreign_key) is not None) if conditions: setattr(self, foreign_key, getattr(self, foreign_key)) - field_dict[foreign_key] = self._data[foreign_key] + field_dict[foreign_key] = self.__data__[foreign_key] def save(self, force_insert=Fals...
Update README.md ipfs bootstrap node
@@ -30,6 +30,11 @@ You need to have a running go IPFS instance running and linked in the configurat PubSub should be active and configured to use GossipSub. More info there: https://github.com/ipfs/go-ipfs/blob/master/docs/experimental-features.md#ipfs-pubsub +You can add our bootstrap node and connect to it on your ip...
Updated CONTRIBUTING.md clarified the 100 characters limit on Descriptions.
@@ -46,6 +46,7 @@ After you've created a branch on your fork with your changes, it's time to [make * Continue to follow the alphabetical ordering that is in place per section. * Each table column should be padded with one space on either side. +* The Description should not exceed 100 characters. * If an API seems to fa...
Update release workflow Update AWS secrets Rework condition for Slack notification
@@ -178,8 +178,8 @@ jobs: nightly_release: ${{ inputs.nightly_release }} secrets: - AWS_ACCESS_KEY_ID: ${{ secrets.PRODUCTION_AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.PRODUCTION_AWS_SECRET_ACCESS_KEY }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRE...
timestamp_format e.g. "%Y-%m-%d-%H-%M-%S-%f" raises an exception ValueError('Unknown string format:', '2019-10-24-20-25-53-460007') in dateutil.parser.parse during collect of submissions. This is due to the dependency of dateutil.parser.parse in parse_utc(). To avoid this during collection of submission, this code will...
@@ -42,6 +42,17 @@ class Exchange(LoggingConfigurable): help="Format string for timestamps" ).tag(config=True) + @validate('timestamp_format') + def _valid_timestamp_format(self, proposal): + try: + from dateutil.parse import parse + import datetime + ts = datetime.datetime.now().strftime(proposal['value']) + ts = pars...
[Fix] Pins KeyError Fixed a KeyError that popped up regularly when trying to add a pin for an IPFS file. The "Pins" key is not present in the dictionary returned by the IPFS client instead of being present with a null value.
@@ -81,7 +81,7 @@ async def handle_new_storage(message: Dict, content: Dict): is_folder = stats["Type"] == "directory" async for status in pin_api.pin.add(item_hash): timer += 1 - if timer > 30 and status["Pins"] is None: + if timer > 30 and "Pins" not in status: return None # Can't retrieve data now. do_standard_looku...
Use local imports for Gdk in handle move aspect This way Gtk/Gdk are not required when you only load the module.
+from __future__ import annotations + import logging from functools import singledispatch from operator import itemgetter -from typing import Iterable, Optional, Sequence, Tuple - -from gi.repository import Gdk, Gtk +from typing import TYPE_CHECKING, Iterable, Sequence from gaphas.connector import ConnectionSink, Conne...
removed duplicate sentence "We recommend using [Anaconda](https://store.continuum.io/cshop/anaconda/), which bundles together most of the required packages. " x 2
# Installing NILMTK -We recommend using [Anaconda](https://store.continuum.io/cshop/anaconda/), which bundles together most of the required packages. We recommend using [Anaconda](https://www.anaconda.com/distribution/), which bundles togther most of the required packages. NILMTK requires Python 3.6+ due to the module ...