message
stringlengths
13
484
diff
stringlengths
38
4.63k
Update CONTRIBUTING.md Problem: Our contributing doc has outdated instructions for updating tezos via 'niv.' Solution: Update these instructions.
@@ -19,8 +19,10 @@ otherwise improve our project, pull requests are most welcome. - Tezos revision is located in the [`sources.json`](../nix/nix/sources.json) file. You can either update it manually to newer revision or use `niv` tool. - In order to do that run `niv update tezos` (this will update revision to latest). ...
ENH: added Table.head() and Table.tail() methods for displaying Table subsets Shows nice html in Jupyter notebooks
@@ -313,6 +313,20 @@ class Table(DictArray): self._repr_policy = dict(head=head, tail=tail, random=random) + def head(self, nrows=5): + """displays top nrows""" + repr_policy = self._repr_policy + self._repr_policy = dict(head=nrows, tail=None, random=None) + display(self) + self._repr_policy = repr_policy + + def tail...
Add ASAP to Graph classification Readme This PR links ASAPool to the graph classification Readme.
@@ -14,6 +14,7 @@ Hyperparameter selection is performed for the number of hidden units and the num * **[GlobalAttention](https://github.com/rusty1s/pytorch_geometric/blob/master/benchmark/kernel/global_attention.py)** * **[Set2Set](https://github.com/rusty1s/pytorch_geometric/blob/master/benchmark/kernel/set2set.py)** ...
llvm, functions/UDF: Store ctypes callback wrapper with Function instance rather than llvm function Fixes memory leak of both PNL and LLVM objects.
@@ -596,9 +596,9 @@ class UserDefinedFunction(Function_Base): value = self.custom_function(np.asfarray(variable), **llvm_params) _assign_to_carr(arg_out.contents, np.atleast_2d(value)) - builder.function.__wrapper_f = wrapper_ct(_wrapper) + self.__wrapper_f = wrapper_ct(_wrapper) # To get the right callback pointer, we...
ansible: blacklist everything except our own namespaces Farewell, pointless roundtrips, we hardly knew ye.
@@ -103,11 +103,8 @@ class StrategyModule(ansible.plugins.strategy.linear.StrategyModule): def run(self, iterator, play_context, result=0): self.router = mitogen.master.Router() - self.router.responder.blacklist('OpenSSL') - self.router.responder.blacklist('urllib3') - self.router.responder.blacklist('requests') - self...
Added a DeprecationWarning for Python 3.4 - Replaced use of six with sys.version_info for Python version determination (stdlib use over ext lib).
@@ -26,7 +26,7 @@ utils --- Miscelaneous utilities """ import gzip -import six +import sys import warnings from .version import _check_module_dependencies, __version__ @@ -36,12 +36,24 @@ def py2_deprecation_warning(): warnings.simplefilter('once') py2_warning = ('Python2 support is deprecated and will be removed in ' ...
remove reference to removed property fixes
@@ -396,7 +396,6 @@ class ExportGLTF2_Base: if self.export_animations: col.prop(self, 'export_frame_range') col.prop(self, 'export_frame_step') - col.prop(self, 'export_move_keyframes') col.prop(self, 'export_force_sampling') col.prop(self, 'export_skins') if self.export_skins:
[runtime env] Add FAQ for runtime_env Adds some frequently asked user questions to the docs.
@@ -402,6 +402,40 @@ Example: {"pip": ["torch", "ray[serve]"], "env_vars": {"A": "a", "B": "new", "C", "c"}} +.. _runtime-env-faq: + +Frequently Asked Questions +^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Are environments installed on every node? +""""""""""""""""""""""""""""""""""""""""" + +If a runtime environment is specified in...
Scons: Minor cleanup * Need to provide define everywhere, crashes have occurred if it was removed for newer Python, where things would compile with MinGW64 but not work.
@@ -828,8 +828,8 @@ else: env.Append(LINKFLAGS=["-s"]) -# MinGW for 64 bits needs this due to CPython bugs. -if win_target and target_arch == "x86_64" and env.gcc_mode: +# MinGW64 for 64 bits needs this due to CPython bugs. +if env.mingw_mode and target_arch == "x86_64": env.Append(CPPDEFINES=["MS_WIN64"]) # Set load l...
Add a note about Google Colab setup User must run `jax.tools.colab_tpu.setup_tpu()`
@@ -466,6 +466,11 @@ the following in your cloud TPU VM: pip install --upgrade pip pip install "jax[tpu]>=0.2.16" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html ``` +Colab TPU runtimes come with JAX pre-installed, but before importing JAX you must run the following code to initialize the TPU: +```p...
llvm, composition: Extract controller output flattening hack to a new function This will be reused to synch compiled state
@@ -3866,16 +3866,19 @@ class Composition(Composition_Base, metaclass=ComponentsMeta): proj_params = (tuple(p._get_param_initializer(execution_id)) for p in self.projections) return (tuple(mech_params), tuple(proj_params)) - def _get_data_initializer(self, execution_id=None): - output = [(os.parameters.value.get(execut...
Pin scenario001-multinode-containers to earlier ceph docker container Closes-Bug:
@@ -117,7 +117,7 @@ parameter_defaults: CephAdminKey: 'AQDLOh1VgEp6FRAAFzT7Zw+Y9V6JJExQAsRnRQ==' CephClientKey: 'AQC+vYNXgDAgAhAAc8UoYt+OTz5uhV7ItLdwUw==' CephPoolDefaultSize: 1 - DockerCephDaemonImage: ceph/daemon:tag-build-master-jewel-centos-7 + DockerCephDaemonImage: ceph/daemon:tag-build-ceph-dfg-jewel-centos-7 No...
Support Copy Op Summary: Pull Request resolved:
@@ -216,7 +216,8 @@ NetDef TvmTransformer::applyTvmTransform( "MatMul", "BatchGather", "DotProduct", "Transpose", "Mul", "Tanh", - "Logit", "Cast"}; + "Logit", "Cast", + "Copy"}; try { // If the op position is black listed, return false
new test_partition_of_unity() in tests/test_poly_spaces.py tests lagrange, serendipity bases
@@ -128,6 +128,39 @@ class Test(TestCommon): return Test(conf=conf, options=options, gels=gels) + def test_partition_of_unity(self): + from sfepy.linalg import combine + from sfepy.discrete import Integral, PolySpace + + ok = True + orders = {'2_3' : 5, '2_4' : 5, '3_4' : 5, '3_8' : 5} + bases = ( + [ii for ii in combi...
Close tempfile before attempting to remove it I'm not a big fan of writing to files without the 'with open(...) as f' context manager notation, but this will do just fine.
@@ -752,6 +752,7 @@ def demo(): >>> parser_std.train([gold_sent],'temp.arcstd.model', verbose=False) Number of training examples : 1 Number of valid (projective) examples : 1 + >>> input_file.close() >>> remove(input_file.name) B. Check the ARC-EAGER training @@ -767,6 +768,7 @@ def demo(): Number of training examples ...
fix for removed get_installed_distributions function This is a very dumb solution and we are cluttering the imports a lot. Much better would be to refactor pipchecker and raise the mimimum pip version.
@@ -24,7 +24,35 @@ try: except ImportError: from pip._internal.download import PipSession # type:ignore from pip._internal.req.req_file import parse_requirements + try: from pip._internal.utils.misc import get_installed_distributions + except ImportError: + from typing import cast + + def get_installed_distributions( +...
changed source DBs It might be better to enhance testing DBs with _tests suffix and control it with single argument (or env var).
@@ -38,9 +38,9 @@ class ModuleUnitTest(BaseTest): PERSIST = False # True to not purge temporary folder nor test DB TEST_OPENPYPE_MONGO = "mongodb://localhost:27017" - TEST_DB_NAME = "test_db" + TEST_DB_NAME = "avalon_tests" TEST_PROJECT_NAME = "test_project" - TEST_OPENPYPE_NAME = "test_openpype" + TEST_OPENPYPE_NAME =...
[tests] Fix cache_tests.py LoginStatus enum does not have an entry above 1 currently, user LoginStatus.AS_USER to test for username.
# import unittest -import scripts.maintenance.cache as cache from pywikibot.site import BaseSite +from pywikibot.login import LoginStatus + +import scripts.maintenance.cache as cache + from tests import join_cache_path from tests.aspects import TestCase @@ -24,7 +27,7 @@ class RequestCacheTests(TestCase): self.assertIs...
Clear training image on close. Would resend the training image since it was saved there. Now after unlisten it will nuke that last raw image.
@@ -169,6 +169,7 @@ class CameraInterface(wx.Frame): self.camera_lock.acquire() self.kernel.unlisten("camera_frame_raw", self.on_camera_frame_raw) self.kernel.unlisten("camera_frame", self.on_camera_frame) + self.kernel.signal("camera_frame_raw", None) self.close_camera() self.kernel.mark_window_closed("CameraInterface...
PR Title: Remove stable build commands PR Body: PUBLIC: internal merge of PR Merge into Closes ORIGINAL_AUTHOR=Sergio Guadarrama COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/agents/pull/3 from tensorflow:sguada-patch-2
@@ -51,40 +51,16 @@ e.g.: <a id='Installation'></a> ## Installation -### Stable Builds - -To install the latest version, run the following: - -```shell -# Installing with the `--upgrade` flag ensures you'll get the latest version. -pip install --user --upgrade tf-agents # depends on TensorFlow -``` - -TF-Agents depends...
Updated `test_split_has_correct_data_points()` Updated `test_split_has_correct_data_points()` in class `TestLightcurve` to check if `split()` works with new attributes. Removed similar test from class `TestNewPeraSupport`
@@ -849,15 +849,26 @@ class TestLightcurve(object): def test_split_has_correct_data_points(self): test_time = np.array([1, 2, 3, 6, 7, 8]) test_counts = np.random.rand(len(test_time)) + test_bg_counts = np.random.rand(len(test_time)) + test_bg_ratio = np.random.rand(len(test_time)) + test_frac_exp = np.random.rand(len(...
Fix loss of keyboard control after spawn We were stepping on this Urwid bug: The guys from pazz/alot found a fix, which I cribbed: Fix
@@ -10,6 +10,7 @@ import sys import tempfile import traceback import typing # noqa +import contextlib import urwid @@ -102,6 +103,16 @@ class ConsoleMaster(master.Master): return callback(*args) self.loop.set_alarm_in(seconds, cb) + @contextlib.contextmanager + def uistopped(self): + self.loop.stop() + try: + yield + f...
fix issue when training for 1 epoch (mostly to pass tests)
@@ -105,5 +105,8 @@ class SaveBestState(Callback): f" Module best state updated." ) + def on_train_start(self, trainer, pl_module): + self.best_module_state = deepcopy(pl_module.module.state_dict()) + def on_train_end(self, trainer, pl_module): pl_module.module.load_state_dict(self.best_module_state)
docs: remove explicit reference to Pi 2 and 3 Closes
@@ -5,7 +5,7 @@ Raspberry Pi ************ Mopidy runs on all versions of `Raspberry Pi <https://www.raspberrypi.org/>`_. -However, note that the Raspberry Pi 2 and 3 are significantly more powerful than +However, note that the later models are significantly more powerful than the Raspberry Pi 1 and Raspberry Pi Zero; M...
add g++-12 dependancy for Ubuntu 22.04 add g++-12 dependancy for 22.04 scons -u -j8 gave clang++ not finding iostream and others. solution at the bottom of the page worked. installed g++-12 and built fine after that.
@@ -86,6 +86,7 @@ function install_ubuntu_lts_latest_requirements() { install_ubuntu_common_requirements $SUDO apt-get install -y --no-install-recommends \ + g++-12 \ qtbase5-dev \ qtchooser \ qt5-qmake \
Typo Fix Just quick word ordering fix!
@@ -69,7 +69,7 @@ If you go to the project directory and execute the command `git status`, you'll Add those changes to the branch you just created using the git add command: ``` -$ git add <YOU ADDED FILE> +$ git add <FILE YOU ADDED> ``` Now commit those changes using the git commit command:
Bug fix in writing node demands error in thermal calculation persists...
@@ -1168,7 +1168,7 @@ def calc_max_edge_flowrate(thermal_network, set_diameter, start_t, stop_t, use_m mass_flows_separated = zip(*mass_flows) thermal_network.edge_mass_flow_df = pd.DataFrame(np.column_stack(mass_flows_separated[0])).transpose() - thermal_network.node_mass_flow_df = pd.DataFrame(np.column_stack(mass_fl...
remove unused function from gv remove unused function from gv
@@ -489,10 +489,3 @@ class GlobalVariables(object): def log(self, msg, **kwargs): print msg % kwargs - - def is_heating_season(self, timestep): - - if self.seasonhours[0] + 1 <= timestep < self.seasonhours[1]: - return False - else: - return True
Update semagglutidequantity.json added categories for grouping and review date for a years time
"low_is_good": true, "tags": [ "core", + "cost", + "diabetes", "safety" ], "numerator_type": "custom", "bnf_code LIKE '0601023AW%' --Semaglutide" ], "date_reviewed": [ - "2019-11-21" + "2020-05-03" ], "next_review": [ - "2019-11-21" + "2020-11-21" ], "authored_by": [ "richard.croker@phc.ox.ac.uk"
UIEditor : Allow switching between Standard and Auxiliary node gadgets Does it really make sense to call this "Show Name"? Maybe it should be a simple submenu with "Standard" and "Auxiliary" options, and then it would automatically work with other types in the future?
@@ -179,6 +179,24 @@ class UIEditor( GafferUI.NodeSetEditor ) : } ) + nodeGadgetTypes = Gaffer.Metadata.value( node, "uiEditor:nodeGadgetTypes" ) + if nodeGadgetTypes : + nodeGadgetTypes = set( nodeGadgetTypes ) + if nodeGadgetTypes == { "GafferUI::AuxiliaryNodeGadget", "GafferUI::StandardNodeGadget" } : + nodeGadgetTy...
hetr poll for exited child instead of hanging waiting for result from child, raise error fix style error
@@ -37,6 +37,8 @@ def build_transformer(name): class AsyncTransformer(Process): + SLEEP_S = 0.2 + def __init__(self, transformer_type): super(AsyncTransformer, self).__init__() self.transformer_type = transformer_type @@ -79,7 +81,17 @@ class AsyncTransformer(Process): self.async_transformer.work_q.put((self.comp_id, v...
Update GH Action test-ci.yml dependencies Updating version of checkout and setup-python actions. Also making sure we install tox, tox-gh-actions into our venv. Changes based on tox-gh-actions README.
@@ -18,14 +18,14 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: |...
Commented out parameter_modulation_operation but EVC is now not correct
@@ -583,8 +583,6 @@ class ParameterState(State_Base): prefs=prefs, context=self) - self.parameterModulationOperation = self.paramsCurrent[PARAMETER_MODULATION_OPERATION] - def _validate_params(self, request_set, target_set=None, context=None): """Insure that parameterState (as identified by its name) is for a valid par...
[doc] Add custom theme location see
@@ -229,6 +229,8 @@ Here are some screenshots for all themes that currently exist: :exclamation: Some themes (all 'Powerline' themes) require [Font Awesome](http://fontawesome.io/) and a powerline-compatible font ([powerline-fonts](https://github.com/powerline/fonts), for example) to display all icons correctly. +:excl...
Add CHANGES modified: CHANGES.rst
- (Hotfix) Fixed bug that allowed science frames to be assigned to multiple instrument configurations +- (Hotfix) Fixed typo related to GitHub download for offline processing 1.11.0 (21 Oct 2022) --------------------
Update android_cerberus.txt Many clean files point on these addresses
@@ -9356,12 +9356,6 @@ http://103.214.5.124 geldigelenolanlarigene.xyz -# Reference: https://twitter.com/unidentified0xc/status/1423343884399222796 -# Reference: https://www.virustotal.com/gui/file/2b3c217d08d9de6f7fb79f2585f747a1852a05a7e32a20cf04321b016e8977ee/detection - -ap-northeast-1.queue.amazonaws.com -sqs.ap-n...
CBCollection.__new__ fails on some platforms Tested-by: Build Bot Tested-by: Ellis Breen
@@ -286,12 +286,6 @@ def _wrap_multi_mutation_result(wrapped # type: CoreBucketOp return _inject_scope_and_collection(wrapper) -def _wrap_collections_class(cls): - for name in cls._MEMCACHED_OPERATIONS: - meth = getattr(cls, name) - if not name.startswith('_'): - setattr(cls, name, _inject_scope_and_collection(meth)) -...
Hopefully execute jobs only if required i.e. - always run detect changes - only execute baseline if detect_changes found common files changed - only execute evaluation if baseline is successful or if it is skipped but specific frameworks need to be evaluated
@@ -18,7 +18,8 @@ jobs: runs-on: ubuntu-latest outputs: output1: ${{ steps.find-required-tests.outputs.frameworks }} - output2: ${{ steps.find-required-tests.outputs.common_changed }} + output2: ${{ steps.find-required-tests.outputs.skip_baseline }} + output3: ${{ steps.find-required-tests.outputs.skip_evaluation }} st...
fix docs/readme turns out *github* renders link text that spans lines, no problem. but *github pages* chokes on link text that span lines, instead linking to the raw markdown rather than the rendered html as intended. lesson learned the hard way: one line per link.
@@ -7,14 +7,5 @@ For now, the API is documented in the repo's top-level The Epidata API is built and maintained by the Carnegie Mellon University [Delphi research group](https://delphi.cmu.edu/). Explore one way in which -Delphi is responding to the pandemic by visiting the [COVID-19 Survey -page](covid_survey.md). - -...
BUG: MolType.make_seq method no longer overrides attribute [FIXED] created a MolType._make_seqs attribute to separate these two
@@ -517,7 +517,7 @@ class MolType(object): seq_constructor = ''.join # safe default string constructor elif not preserve_existing_moltypes: seq_constructor.moltype = self - self.make_seq = seq_constructor + self._make_seq = seq_constructor # set the ambiguities ambigs = {self.missing: tuple( @@ -550,6 +550,7 @@ class M...
autostart fix for repo name change Simple change here, accompanied by a change in /home/pi/.config/autostart/runai.desktop in Raspbian, which will need to be updated manually for users who have an existing uSD with the old depthai-python-extras repo. All future images on uSDs that ship from Luxonis will have this chang...
@@ -11,6 +11,6 @@ raspi-gpio set 33 dl # drive low to allow Myriad X to run echo Booting DepthAI echo Loading Start-up Demo Application... sleep 1 -cd /home/pi/Desktop/depthai-python-extras +cd /home/pi/Desktop/depthai python3 test.py sleep 60
Fix for periods from 11th onward not saving Only the first number of period id was parsed, thus saving worked only for ids 0 - 9.
@@ -84,7 +84,7 @@ export function sortPeriodDays($periodItem) { function updatePeriodDaysIndices($periodItem) { let originalDaysList = $periodItem.find('.weekday-row.original-day'); let newDaysList = $periodItem.find('.weekday-row:not(.original-day)'); - let periodIdNum = $periodItem[0].id.match(/[0-9]/)[0]; + let peri...
split setup_env to separate out pre-commit step Dependency installations are now divided into setup_conda setup_pip setup_dependencies: setup_conda setup_pip in addition to setup_env
# This file is part of the pyani package distribution # (https://github.com/widdowquinn/pyani) -# Set up all development dependencies in the current conda environment -setup_env: +# Install conda dependencies +setup_conda: @conda install --file requirements-dev.txt --yes @conda install --file requirements.txt --yes @co...
tests/TransferMechanism: Run more than one iteration in tests that use integrator mode Use rate other than 1 so observe the effect of integrator_mode = True.
@@ -54,15 +54,16 @@ class TestTransferMechanismInputs: T = TransferMechanism( name='T', default_variable=[0 for i in range(VECTOR_SIZE)], - integration_rate=1.0, + integration_rate=0.5, integrator_mode=True ) T.reset_stateful_function_when = Never() var = [10.0 for i in range(VECTOR_SIZE)] EX = pytest.helpers.get_mech_...
llvm, function/Distance: Don't use self._variable_length The variable is available right.
@@ -10560,7 +10560,7 @@ class Distance(ObjectiveFunction): # FIXME: PEARSON breaks output format if (self.metric == PEARSON): - selfcor = 1/(self._variable_length // 2) if self.normalize else 1 + selfcor = 1 / len(variable[0]) if self.normalize else 1 return np.array([[selfcor, ret], [ret, selfcor]]) return ret
Fix for duration of signals in `generate_one_simple_segment` The default `sampling_rate` has units kHz, and the default `duration` has units s. By dropping units from their product without first simplifying, the number of data points was off by a factor of 1000. Consequently, the default 6 second signal was instead 6 m...
@@ -64,7 +64,7 @@ def generate_one_simple_segment(seg_name='segment 0', supported_objects=[], nb_a seg = Segment(name=seg_name) if AnalogSignal in supported_objects: for a in range(nb_analogsignal): - anasig = AnalogSignal(rand(int(sampling_rate * duration)), sampling_rate=sampling_rate, + anasig = AnalogSignal(rand(in...
docs: Update references to "QEMU-native TLS" document Link to the "Secure live migration with QEMU-native TLS" document from other relevant guides, and small blurbs of text where appropriate. Blueprint: support-qemu-native-tls-for-live-migration
@@ -75,10 +75,6 @@ using the KVM and XenServer hypervisors. KVM-libvirt ~~~~~~~~~~~ -.. :ref:`_configuring-migrations-kvm-general` -.. :ref:`_configuring-migrations-kvm-block-and-volume-migration` -.. :ref:`_configuring-migrations-kvm-shared-storage` - .. _configuring-migrations-kvm-general: General configuration @@ -1...
Run CDK tests as part of the run-tests GitHub action I've set this up as a separate job under this action to isolate setting up node and the CDK to only the tests that need it.
@@ -24,6 +24,29 @@ jobs: pip install -e . - name: Run PRCheck run: make prcheck + cdktests: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + python-version: [3.6, 3.7, 3.8] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + - uses...
TST: added test for `inst_module` instantiation Added a test for appropriate `inst_module` values.
@@ -94,6 +94,7 @@ class InstTestClass(): assert inst.name == module.name assert inst.inst_id == inst_id assert inst.tag == tag + assert inst.inst_module is not None # Test the required class attributes for iattr in self.inst_attrs:
Changed dimensionality_PCA just for testing
@@ -228,7 +228,7 @@ def dimensionality_RF(instruction, dataset, target="", y="", n_features=10): accuracy_scores), list(columns[the_index]) -def dimensionality_PCA(instruction, dataset, target="", y="", n_components=10): +def dimensionality_PCA(instruction, dataset, target="", y=""): global currLog global counter @@ -2...
[hail] retry gradle download This addresses issues where the gradle download may fail. We retry a command that is cheap (`--version`) but which requries downloading the gradle binary.
@@ -544,6 +544,7 @@ steps: cd repo {{ code.checkout_script }} cd hail + time retry ./gradlew --version time make jars python-version-info wheel time (cd python && zip -r hail.zip hail hailtop) time tar czf test.tar.gz -C python test @@ -1715,6 +1716,7 @@ steps: fi cd hail + time retry ./gradlew --version make test-data...
Move SVGImage import into conditional stagement SVG image support is optional. By importing the svgimage module at the top of the image.py module, any rst document that contained an image would rely on having svglib installed. This commit fixes that problem.
@@ -13,8 +13,6 @@ import urllib from .opt_imports import PILImage, pdfinfo from .log import log, nodeid -from .svgimage import SVGImage - # This assignment could be overridden by an extension module VectorPdf = None @@ -193,6 +191,7 @@ class MyImage (Flowable): if extension in ['svg','svgz']: log.info('Backend for %s i...
Update lokibot.txt ```/fre.php``` is in use from proto-historic times of MT.
@@ -2605,6 +2605,10 @@ http://193.142.59.22/jaydee/logs/fre.php /panel_jee.php /pen.php +# Reference: https://twitter.com/wwp96/status/1235606545771175943 + +site-inspection.com + # Reference: http://tracker.viriback.com/dump.php (2020-02-29) /high/sumy/ltd.php @@ -2623,4 +2627,3 @@ http://193.142.59.22/jaydee/logs/fre...
[easy] Stop hardcoding "python" executable in bottleneck tests Right now, the bottleneck test_utils.py tests assume that a user's python executable is 'python'. This may not be the case especially if the user has multiple versions of python installed. This PR changes it so that test_utils.py uses `sys.executable` as th...
@@ -525,7 +525,7 @@ class TestBottleneck(TestCase): if scriptargs != '': scriptargs = ' {}'.format(scriptargs) rc, out, err = self._run( - 'python -m torch.utils.bottleneck {}{}'.format(filepath, scriptargs)) + '{} -m torch.utils.bottleneck {}{}'.format(sys.executable, filepath, scriptargs)) return rc, out, err def _ch...
docs: Fix anchor link written in reference link syntax. This has been broken since it was added in a rewrite in July 2019 in An incomplete fix was made a few days later in
@@ -28,7 +28,7 @@ Our API documentation is defined by a few sets of files: This first section is focused on explaining how the API documentation system is put together; when actually documenting an endpoint, you'll -want to also read the [Step by step guide][#step-by-step-guide]. +want to also read the [Step by step gu...
Defined found_results before try block so it's always assigned Up until now, the "if not found_results" line could throw an UnboundLocalError because the variable was assigned inside a try block which could fail but the variable was later referenced.
@@ -442,6 +442,7 @@ class LDAPUsers(FederatedUsers): break while True: + found_results = 0 try: if has_pagination: _, rdata, _, serverctrls = conn.result3(msgid) @@ -449,7 +450,6 @@ class LDAPUsers(FederatedUsers): _, rdata = conn.result(msgid) # Yield any users found. - found_results = 0 for userdata in rdata: found_r...
Updated configuration documentation Debug toolbar settings look for DEBUG_TOOLBAR_CONFIG in django settings. Documentation implies this dict is called CONFIG_DEFAULTS.
@@ -191,7 +191,7 @@ Panel options Here's what a slightly customized toolbar configuration might look like:: # This example is unlikely to be appropriate for your project. - CONFIG_DEFAULTS = { + DEBUG_TOOLBAR_CONFIG = { # Toolbar options 'RESULTS_CACHE_SIZE': 3, 'SHOW_COLLAPSED': True,
stream edit: Add <Enter> keyboard shortcut to invite users to stream. Fixes
@@ -665,6 +665,13 @@ exports.initialize = function () { $("#subscriptions_table").on("click", ".sub_setting_checkbox", exports.stream_setting_clicked); + $("#subscriptions_table").on("keyup", ".subscriber_list_add form", function (e) { + if (e.which === 13) { + e.preventDefault(); + submit_add_subscriber_form(e); + } +...
Remove printer module This will be replaced later with something that is customized more for CLI. For now, simple logging messages will suffice.
@@ -4,7 +4,6 @@ import sys import yaml import argparse import os -import fonz.printer as printer from fonz.runner import Runner from fonz.client import LookerClient from fonz.exceptions import FonzException, ValidationError @@ -20,11 +19,8 @@ def handle_exceptions(function): except FonzException as error: logger.error(...
Add garage.sampler to API Reference Somehow, I forgot this.
@@ -55,6 +55,7 @@ and how to implement new MDPs and new algorithms. _autoapi/garage/np/index _autoapi/garage/plotter/index _autoapi/garage/replay_buffer/index + _autoapi/garage/sampler/index _autoapi/garage/tf/index _autoapi/garage/torch/index ```
Generate JSON to construct the job matrix This way only the executed jobs are generated, instead of having to rely on skips later, which will make the joblist/UI less cluttered.
@@ -30,7 +30,12 @@ jobs: - name: store changed frameworks id: frameworks-diff run: | - echo "::set-output name=frameworks::`git diff --name-only HEAD..$GITHUB_BASE_REF | grep -o -i -P 'frameworks/(?!shared).*/' | uniq | sed -e 's/frameworks//' -e 's/\///g' | perl -p -e 's/\n//'`" + changed=$(git diff --name-only HEAD.....
Update algo.h removed fmod and added modulo
@@ -62,7 +62,7 @@ void launcher(const ML::cumlHandle_impl &handle, Pack<value_t, index_t> data, auto fused_op = [vd, n] __device__(index_t global_c_idx, bool in_neigh) { // fused construction of vertex degree - index_t batch_vertex = fmod(global_c_idx, n); + index_t batch_vertex = global_c_idx % n; if (sizeof(index_t) ...
Fixing boto3 install issue. Fix: manually pin python-dateutil to 2.8.0
@@ -39,6 +39,10 @@ setup( 'pytest_marker_bugzilla>=0.9.1.dev6', 'pyvmomi', 'pyhcl', + # issue opened for botocore + # https://github.com/boto/botocore/issues/1872 + # till above issue fixed, manually pointing python-dateutil to 2.8.0 + 'python-dateutil==2.8.0', ], entry_points={ 'console_scripts': [
Attempt to reduce memory usage for host monitor Compile the regexps for ping once only, in an attempt to address possible memory leakage
@@ -212,21 +212,21 @@ class MonitorHost(Monitor): 'host', required=True ) + self.r = re.compile(self.ping_regexp) + self.r2 = re.compile(self.time_regexp) def run_test(self): - r = re.compile(self.ping_regexp) - r2 = re.compile(self.time_regexp) success = False pingtime = 0.0 try: cmd = (self.ping_command % self.host)....
Update Michigan.md starting geos
@@ -8,7 +8,7 @@ tags: protester, punch, tackle id: mi-detroit-4 -geolocation: +geolocation: 42.3312081,-83.043529 **Links** @@ -23,7 +23,7 @@ tags: beat, protester, shield, tackle id: mi-detroit-5 -geolocation: +geolocation: 42.3309973,-83.04279 **Links** @@ -38,7 +38,7 @@ tags: protester, shove, threaten id: mi-detroi...
Update show_cloudexpress_applications.py Taken feedback from Takashiand adjusted latency, loss and vpn to integers.
@@ -3,7 +3,7 @@ from genie.metaparser.util.schemaengine import Any, Or, Optional import re # ======================================= -# Schema for 'show cloudexpress applications' +# Schema for 'show cloudexpress application' # ======================================= class ShowCloudexpressApplicationSchema(MetaParser):...
batch norm docfix fixes the formula for batch normalization (moves the epsilon inside the square root)
@@ -53,7 +53,7 @@ class BatchNorm1d(_BatchNorm): .. math:: - y = \frac{x - mean[x]}{ \sqrt{Var[x]} + \epsilon} * gamma + beta + y = \frac{x - mean[x]}{ \sqrt{Var[x] + \epsilon}} * gamma + beta The mean and standard-deviation are calculated per-dimension over the mini-batches and gamma and beta are learnable parameter v...
Respell scalar map to scalar alias extra attr is now named `scalar-aliases` map is of alias to one or more patterns if a logged scalar matches an alias pattern, that alias is used for the value
@@ -22,9 +22,12 @@ import hashlib import logging import os import random +import re import time import sys +import six + from whoosh import fields from whoosh import index from whoosh import query @@ -307,7 +310,7 @@ class RunIndex(object): from tensorboard.backend.event_processing import event_accumulator _ensure_tf_l...
A few adjustments enable bumpmapping and specular as they help with visibility disable player model on hud due to animation issues it causes, as well as FPS decrease remove some redundant options now that comfig.cfg has been updated
@@ -9,34 +9,27 @@ mat_phong 0 // Disable phong for flatter shading nb_shadow_dist 0 // Disable shadow distance mat_colorcorrection 0 // Disable color correction mat_postprocessing_combine 0 // Faster post processing quit when you have software AA, bloom and color correction disabled -mat_trilinear 0 // Disable trilinea...
datapaths.pcap_switch: Allow reuse of ctl server This allows multiple datapaths to use the same ctl server. Before it only really worked for a single DP.
@@ -106,12 +106,15 @@ def launch (address = '127.0.0.1', port = 6633, max_retry_delay = 16, raise RuntimeError("You need PXPCap to use this component") if ctl_port: - if core.hasComponent('ctld'): - raise RuntimeError("Only one ctl_port is allowed") - if ctl_port is True: ctl_port = DEFAULT_CTL_PORT + if core.hasCompon...
Add docs about building the docs. re:
@@ -3,6 +3,7 @@ IPython Documentation This directory contains the majority of the documentation for IPython. + Deploy docs ----------- @@ -12,13 +13,29 @@ Pull requests. Requirements ------------ + +The documentation must be built using Python 3. + The following tools are needed to build the documentation: - sphinx + -...
Fixed the QRadarFullSearch Problems were: 1. Was not compiled because of this line: `return {"Type" : entryTypes.error, "ContentsFormat" : formats.text, "Contents" : 'An Error occurred during the search process. search status={0}.'.format(status)};` Since we don't have `status` var... 2. q_status in [..] does not work ...
@@ -25,14 +25,14 @@ script: |- //submit query, retrive search_id var query_res = executeCommand("qradar-searches", args); + if (isError(query_res[0])) { return query_res; - } - else { + } else { search_id = dq(query_res[0], "Contents.search_id"); search_args.search_id = search_id; - //polling stage + //polling stage va...
Include guild.op_main in cmd preview At this point guild.op_main is more than just a thin wrapper as it can execute a script with global assigns. Rather than decide when and when not to show guild.op_main, always show.
@@ -618,11 +618,7 @@ def _invalid_op_spec_error(e, opdef): cli.error("operation '%s' is not valid: %s" % (opdef.fullname, e)) def _preview_cmd(op): - # Quote args and remote guild.op_main - return [ - pipes.quote(arg) for arg in op.cmd_args - if arg != "guild.op_main" - ] + return [pipes.quote(arg) for arg in op.cmd_ar...
$.Analysis: make derived types available for root AST properties decl. TN:
@@ -789,6 +789,30 @@ package ${ada_lib_name}.Analysis is procedure Assign_Names_To_Logic_Vars_Impl (Node : access ${root_node_value_type}) is null; + ------------------------------------------------------ + -- AST node derived types (incomplete declarations) -- + ------------------------------------------------------ +...
[Cleanup] Remove unused variables and unreachanble code Fixed the following instances: scripts\script_wui.py:310: unsatisfiable 'if' condition
@@ -304,11 +304,6 @@ def main_script(page, rev=None, params=NotImplemented): def wiki_logger(buffer, page, rev=None): """Log to wiki.""" - # FIXME: what is this?? - # (might be a problem here for TS and SGE, output string has another - # encoding) - if False: - buffer = buffer.decode(pywikibot.config.console_encoding) ...
Add Credits, Legal sections to README also tweak link formatting
@@ -90,12 +90,26 @@ Finally, launch TF2 with only the `-default -autoconfig -console` launch options # Screenshots -[Screenshots are available on the wiki.](https://github.com/mastercoms/tf2cfg/wiki/Screenshots) +[Screenshots are available on the wiki](https://github.com/mastercoms/tf2cfg/wiki/Screenshots). # Troublesh...
Apply suggestions from code review Added suggested changes for Static builds on windows
from conans import ConanFile, tools, CMake -from conans.errors import ConanInvalidConfiguration import os import glob @@ -19,7 +18,7 @@ class EasyProfilerConan(ConanFile): "fPIC": [True, False] } default_options = { - "shared": True, + "shared": False, "fPIC": True } short_paths = True @@ -41,11 +40,6 @@ class EasyProf...
changed summing method, and added exception for image_id to utility script (bug fix)
@@ -286,12 +286,12 @@ def main(): finalfeatures = [] # Select the features that are not completely empty for x in fheader: - if x == 'in_bounds': + if x == 'in_bounds' or x=='image_id': finalfeatures.append(x) mheader.append(x) elif x != 'in_bounds': table1[str(x)] = table1[str(x)].astype(float) - sumcol = table1[str(x...
[easy] Fix bad merge for location subscriber Summary: Somehow had a weird merge. This diff fixes it Test Plan: bk Reviewers: dgibson
@@ -189,11 +189,9 @@ def __init__( self._location_state_events_handler ) + self.version = version self.set_state_subscribers() - location.add_state_subscriber(self._location_state_subscriber) - self._repository_locations[location.name] = location - def set_state_subscribers(self): for location in self._workspace.reposi...
Remove API macros from intrusive_ptr Summary: Pull Request resolved: This is a templated header-only class and shouldn't need export/import macros.
#pragma once -#include <ATen/core/ATenGeneral.h> #include <c10/util/C++17.h> #include <c10/util/Exception.h> #include <atomic> @@ -114,7 +113,7 @@ class CAFFE2_API intrusive_ptr_target { namespace detail { template <class TTarget> -struct C10_EXPORT intrusive_target_default_null_type final { +struct intrusive_target_de...
Update tools.md remove legacy command line documentation and just leave the link to further documentation
@@ -99,77 +99,7 @@ random images requested must be less than or equal to the number of images in th `plantcv-workflow.py` is a command-line tool for parallel processing of user-defined PlantCV workflows. It is used to process metadata and execute custom workflows on each image in a dataset. More detail is provided in t...
Langkit_Support.Iterators: use standard vectors ... instead of Langkit_Support.Vectors ones, as these don't handle tagged types. TN:
-with Langkit_Support.Vectors; +with Ada.Containers.Vectors; package body Langkit_Support.Iterators is @@ -22,7 +22,8 @@ package body Langkit_Support.Iterators is ------------- function Consume (I : Iterator'Class) return Element_Array is - package Element_Vectors is new Langkit_Support.Vectors (Element_Type); + packag...
Fix typo in `_block_parallel_sync_behavior` docstring Typo
@@ -153,7 +153,7 @@ def _build_training_step_kwargs( @contextmanager def _block_parallel_sync_behavior(strategy: Strategy, block: bool = True) -> Generator[None, None, None]: """Blocks synchronization in :class:`~pytorch_lightning.strategies.parallel.ParallelStrategy`. This is useful - for example when when accumulatin...
DOC: fix docstring in _cdf() function of _multivariate.py See issue Function computes the multivariate cdf, not the log of the same.
@@ -518,7 +518,7 @@ class multivariate_normal_gen(multi_rv_generic): return _squeeze_output(out) def _cdf(self, x, mean, cov, maxpts, abseps, releps): - """Log of the multivariate normal cumulative distribution function. + """Multivariate normal cumulative distribution function. Parameters ----------
Don't catch/pass YAMLError when parsing docstring fails. The current behavior is to swallow any parse errors silently, which makes trying to add more than a trivial apispec docstring confusing and frustrating. See issue for more discussion.
@@ -60,10 +60,7 @@ def load_yaml_from_docstring(docstring): yaml_string = "\n".join(split_lines[cut_from:]) yaml_string = dedent(yaml_string) - try: return yaml.load(yaml_string) - except yaml.YAMLError: - return None PATH_KEYS = set([ 'get',
Changelog mistake Used pytest.fixture.skipif instead of pytest.mark.skipif
-Minor Doc Fix: The description above the example for ``@pytest.fixture.skipif`` now matches the code +Minor Doc Fix: The description above the example for ``@pytest.mark.skipif`` now matches the code
Portable way of the warning clause Summary: Pull Request resolved:
#ifdef TORCH_API_INCLUDE_EXTENSION_H #include <torch/extension.h> -#warning \ + +#define DEPRECATE_MESSAGE \ "Including torch/torch.h for C++ extensions is deprecated. Please include torch/extension.h" + +#ifdef _MSC_VER +# pragma message ( DEPRECATE_MESSAGE ) +#else +# warning DEPRECATE_MESSAGE +#endif + #endif // def...
Set bone length when there are in chain Use distance to point to detect if a bone is in chain or not
@@ -227,6 +227,44 @@ class glTFImporter(): for scene in self.other_scenes: scene.blender_create() + # Armature correction + # Try to detect bone chains, and set bone lengths + # To detect if a bone is in a chain, we try to detect if a bone head is aligned + # with parent_bone : + ## Parent bone defined a line (between ...
Add ssh port forwarding to intercept It works now
@@ -5,6 +5,7 @@ import ( "fmt" "net/http" "strconv" + "time" "github.com/datawire/teleproxy/pkg/supervisor" "github.com/pkg/errors" @@ -139,21 +140,38 @@ type Intercept struct { ii *InterceptInfo tm *TrafficManager port int + crc Resource ResourceBase } // MakeIntercept acquires an intercept and returns a Resource hand...
DPDK on Debian: buster 5.4 missing ib drivers Buster doesn't have an ib config 'out of box' on older versions and recommends using the latest kernel for backports. Add a check for buster and update if the kernel version doesn't ship a configuation for ib and rdma.
@@ -587,8 +587,25 @@ class DpdkTestpmd(Tool): else: mellanox_drivers = ["mlx5_core", "mlx5_ib"] modprobe = self.node.tools[Modprobe] - if isinstance(self.node.os, Debian): - modprobe.load("rdma_cm") + if isinstance(self.node.os, Debian) and not isinstance(self.node.os, Ubuntu): + # NOTE: debian buster doesn't include r...
Add client cert support via secrets This commit adds support for enabling client cert authentication. Support for requiring the cert using `cert_required` literal in the Kubernetes secret has also been added back.
# See the License for the specific language governing permissions and # limitations under the License +import base64 import click import json import logging @@ -112,20 +113,40 @@ class Restarter(threading.Thread): def tls_secret_resolver(self, secret_name: str, context: str, cert_dir=None) -> Optional[Dict[str, str]]: ...
Delete duplicate 'timeout' tests for notifications These scenarios are already covered by the DAO tests. It's enough to just check the DAO function is called as expected. While sometimes it can be better to have more end-to-end tests, the convention across much of this app is to do unit tests.
@@ -166,47 +166,15 @@ def test_delete_letter_notifications_older_than_retention_calls_child_task(notif mocked.assert_called_once_with('letter') -def test_timeout_notifications_after_timeout(notify_api, sample_template): - not1 = create_notification( - template=sample_template, - status='sending', - created_at=datetime....
.travis: Backup travis provided venv files before caching the directories Restore in after_script This should avoid:
@@ -19,6 +19,16 @@ cache: directories: - $HOME/virtualenv/python${TRAVIS_PYTHON_VERSION}/lib/python${TRAVIS_PYTHON_VERSION}/site-packages - $HOME/virtualenv/python${TRAVIS_PYTHON_VERSION}/bin +# These files are provided by travis do not overwrite them with cached version. +# We need to preserve them because after_scrip...
removed unused ipython sphinx extensions at present we're not installing ipython by default...
@@ -50,8 +50,8 @@ extensions = [ # 'sphinx.ext.viewcode', 'sphinx.ext.linkcode', 'sphinx.ext.napoleon', - 'IPython.sphinxext.ipython_console_highlighting', - 'IPython.sphinxext.ipython_directive', +# 'IPython.sphinxext.ipython_console_highlighting', +# 'IPython.sphinxext.ipython_directive', ] napoleon_use_ivar = True
settings_users: Add last_active to active_users for "users" table. This is a preliminary step for refactoring the logic for rendering "last_active" in the users table and later we can use this for sorting the column.
@@ -105,6 +105,20 @@ function failed_listing_users(xhr) { ui_report.error(i18n.t("Error listing users or bots"), xhr, status); } +var LAST_ACTIVE_NEVER = -1; +var LAST_ACTIVE_UNKNOWN = -2; + +function get_last_active(user) { + var presence_info = presence.presence_info[user.user_id]; + if (!presence_info) { + return LA...
Begins work on feature-cbits branch. Adds arguments to StateSpaceLabels.__init__ for classical state space labels. Not much done yet.
@@ -382,7 +382,8 @@ class StateSpaceLabels(object): spaces. """ - def __init__(self, labelList, dims=None): + def __init__(self, labelList, dims=None, + classicalLabelList=None, classicalDims=None): """ Creates a new StateSpaceLabels object. @@ -414,6 +415,17 @@ class StateSpaceLabels(object): - if the label starts wit...
TexText package prepared for extension manager This relates to the package of type TexText-Inkscape-x.y.z.zip. It is modified such that it can be handled by the extension manager. no setup scripts LICENCSE file moved into extension directory No INSTALL.TXT
@@ -75,18 +75,17 @@ if __name__ == "__main__": with TmpDir() as tmpdir: versioned_subdir = os.path.join(tmpdir,"textext-%s" % TexTextVersion) + extension_subdir = os.path.join(versioned_subdir, "textext") os.mkdir(versioned_subdir) shutil.copytree("./textext", - os.path.join(versioned_subdir, "textext"), + extension_su...
WIP: toward automated deploy working from suggestions made by - many thanks! this will take a few iterations
@@ -42,6 +42,16 @@ before_install: install: - python3 setup.py install + - travis_wait 30 python3 setup.py sdist bdist_wheel + +deploy: + provider: releases + api_key: $GITHUB_ACCESS_TOKEN + file_glob: true + file: /home/travis/build/ANTsX/ANTsPy/dist/antspyx*.whl + skip_cleanup: true + on: + tags: true script: ./tests...
Update test_mumbai.py Fix bug introduced in previous commit. Test now passes locally
@@ -78,7 +78,7 @@ def _get_wallets(ocean): # wallets n_confirm, timeout = config["BLOCK_CONFIRMATIONS"], config["TRANSACTION_TIMEOUT"] alice_wallet = Wallet(web3, alice_private_key, n_confirm, timeout) - alice_wallet = Wallet(web3, bob_private_key, n_confirm, timeout) + bob_wallet = Wallet(web3, bob_private_key, n_conf...
Fix caffe2 build failure on Windows Summary: Fixes Looks like CMake is passing `/MD` when we call `add_library`. We need to fix these with C source files too. Pull Request resolved:
@@ -347,7 +347,9 @@ if(NOT MSVC) else() foreach(flag_var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE - CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO) + CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO + CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE + CMAKE_C_FLAGS_MINSIZ...