message
stringlengths
13
484
diff
stringlengths
38
4.63k
Add .summary() method to rotor_assembly.py * This method is used to call the class SummaryResults in results.py * It creates a summary of the main parameters and attributes from the rotor model. The data is presented in a table format.
@@ -38,6 +38,7 @@ from ross.results import ( ForcedResponseResults, ModeShapeResults, StaticResults, + SummaryResults, ConvergenceResults, TimeResponseResults, ) @@ -239,6 +240,8 @@ class Rotor(object): "L", "node_pos", "node_pos_r", + "beam_cg", + "axial_cg_pos", "y_pos", "i_d", "o_d", @@ -271,10 +274,13 @@ class Roto...
Update instructions in Making the Grade, Task 1 Update instructions in Making the Grade, Task 1 to stress that the resulting score order is not important.
@@ -14,6 +14,7 @@ There shouldn't be any scores that have more than two places after the decimal p Create the function `round_scores()` that takes a `list` of `student_scores`. This function should _consume_ the input `list` and `return` a new list with all the scores converted to `int`s. +The order of the scores in th...
add input_format parameter to _run_tool helper because the 21.01 format is not supported by older galaxy versions
@@ -58,7 +58,7 @@ class TestGalaxyJobs(GalaxyTestBase.GalaxyTestBase): @test_util.skip_unless_galaxy('release_21.01') @test_util.skip_unless_tool("random_lines1") def test_run_and_rerun_random_lines(self): - original_output = self._run_tool() + original_output = self._run_tool(input_format='21.01') original_job_id = or...
fix: set link field to `undefined` instead of empty string This breaks other code where undefined values are removed, technically invalid value for link field => unset link field so it should be undefined
@@ -471,7 +471,7 @@ frappe.ui.form.ControlLink = class ControlLink extends frappe.ui.form.ControlDat docname: value, fields: columns_to_fetch, }).then((response) => { - if (!response || !response.name) return ""; + if (!response || !response.name) return undefined; if (!docname || !columns_to_fetch.length) return respo...
remove credentials check and set AWS credentials in boto3 only if they are configured This enables retrieval of credentials from the environment as described at:
@@ -278,14 +278,13 @@ def _do_aws_request(request): :rtype: dict :raises: AwsDownloadFailedException, ValueError """ - if not SHConfig().aws_access_key_id or not SHConfig().aws_secret_access_key: - raise ValueError('The requested data is in Requester Pays AWS bucket. In order to download the data please set ' - 'your a...
Move newrelic initialization to the very start of wsgi initialization Makes sure we track all backend errors.
@@ -7,12 +7,9 @@ For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ +import logging import os -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "contentcuration.settings") - # Attach newrelic APM try: import newreli...
Update README.md * Update README.md No submodule any more * Update README.md remove beta
[![Build Status](https://api.travis-ci.org/HorizonRobotics/alf.svg?branch=master)](https://travis-ci.org/HorizonRobotics/alf) -Agent Learning Framework (ALF) is a reinforcement learning framework emphasizing on the flexibility and easiness of implementing complex algorithms involving many different components. ALF is b...
WIP: Start of support guide questions for LDAP and TLS * Start of support guide questions for LDAP and TLS * Update support.md Fixed some typos
@@ -111,6 +111,36 @@ Typically found in `/etc/nginx/nginx.conf` and `/etc/nginx/sites-available/matte #### Can you send us a snippet of your Nginx error logs around the time of the incident? Typically found in `/var/log/nginx/error.log` + +## LDAP Issues + +#### Attach your LDAP settings from config.json +The username/...
popovers: Add newline between checkboxes in `Move topic` menu. This is cleaner UI and avoids the spacing looking weird if both fit on a line at a given zoom level. Fixes
<span></span> {{t "Send notification to new topic" }} </label> + <br/> <label class="checkbox"> <input class="send_notification_to_old_thread" name="send_notification_to_old_thread" type="checkbox" {{#if notify_old_thread}}checked="checked"{{/if}} /> <span></span>
Delete unused method from deployops.py SIM: cr
@@ -65,22 +65,3 @@ def deploy(app_name, env_name, version, label, message, group_name=None, timeout_in_minutes=timeout, can_abort=True, env_name=env_name) - - -def deploy_no_events(app_name, env_name, version, label, message, process=False, staged=False): - region_name = aws.get_region_name() - - io.log_info('Deploying...
Set Telegram variables to None when unset Fixes AttributeError when they're not present in config.
@@ -22,7 +22,7 @@ for variable_name in ('PB_API_KEY', 'PB_CHANNEL', 'TWITTER_CONSUMER_KEY', 'NOTIFY', 'NAME_FONT', 'IV_FONT', 'MOVE_FONT', 'TWEET_IMAGES', 'NOTIFY_IDS', 'NEVER_NOTIFY_IDS', 'RARITY_OVERRIDE', 'IGNORE_IVS', 'IGNORE_RARITY', - 'WEBHOOKS'): + 'WEBHOOKS', 'TELEGRAM_BOT_TOKEN', 'TELEGRAM_CHAT_ID'): if not ha...
Remove use of astropy units in docstring Fix improper indentation
@@ -311,9 +311,9 @@ def farnocchia(k, r0, v0, tof): ---------- k : float Standar Gravitational parameter - r0 : ~astropy.units.Quantity + r0 : ~np.array Initial position vector wrt attractor center. - v0 : ~astropy.units.Quantity + v0 : ~anp.array Initial velocity vector. tof : float Time of flight (s).
added additional criteria to strong validator added lowercase criteria added using a specific set of special characters
@@ -674,8 +674,10 @@ class strong(BaseValidation): validations, length=8, uppercase=2, + lowercase=2, numbers=2, special=2, + special_chars=None, breach=False, messages={}, raises={}, @@ -683,11 +685,14 @@ class strong(BaseValidation): super().__init__(validations, messages=messages, raises=raises) self.length = length...
STY: logger style in template Updated the logger style in the template, explaining the two implementation options.
@@ -44,11 +44,15 @@ Author name and institution """ import datetime as dt -import logging import pysat -logger = logging.getLogger(__name__) +# Assign the pysat logger to the local log commands, as these functions will +# all be executed within pysat. If this is the only instance pysat is used, +# consider omitting the...
added check for dash.page_container refactored interpolate_index
@@ -2200,6 +2200,8 @@ class Dash: ] + [self.layout] ) + if _ID_CONTENT not in self.validation_layout: + raise Exception("`dash.page_container` not found in the layout") # Update the page title on page navigation self.clientside_callback( @@ -2237,7 +2239,7 @@ class Dash: ) return dedent( - """ + f""" <!DOCTYPE html> <h...
Bump FastHttpUser/geventhttpclient dependency to 2.0.2. Not really a strict requirement, but older versions have a couple of issues I dont want people to have to encounter.
@@ -41,7 +41,7 @@ install_requires = requests >=2.23.0 msgpack >=0.6.2 pyzmq >=22.2.1, !=23.0.0 - geventhttpclient >=1.5.1 + geventhttpclient >=2.0.2 ConfigArgParse >=1.0 psutil >=5.6.7 Flask-BasicAuth >=0.2.0
Fix comment buttons not displaying correctly in high contrast mode fixes
@@ -533,6 +533,11 @@ li.inline:first-child { width: 30px; height: 30px; color: $color-teal; + + @media (forced-colors: $media-forced-colours) { + color: ButtonText; + border: 1px solid; + } } } }
fix(tags/print-return): use the raw GitHub URL for the GIF As mentioned in the previous commit, using the raw GitHub URL would be more reliable than a Discord CDN URL.
embed: title: Print and Return image: - url: https://cdn.discordapp.com/attachments/267659945086812160/998198889154879558/print-return.gif + url: https://raw.githubusercontent.com/python-discord/bot/main/bot/resources/media/print-return.gif --- Here's a handy animation demonstrating how `print` and `return` differ in b...
Use system locale in collect_env.py Summary: Fixes Pull Request resolved:
# This script outputs relevant system environment info # Run it with `python collect_env.py`. from __future__ import absolute_import, division, print_function, unicode_literals +import locale import re import subprocess import sys @@ -42,8 +43,9 @@ def run(command): output, err = p.communicate() rc = p.returncode if PY...
[client] uninstall in reverse order So that nested caches work.
@@ -1313,7 +1313,7 @@ def main(args): # # If the Swarming bot cannot clean up the cache, it will handle it like # any other bot file that could not be removed. - for path, name in caches: + for path, name in reversed(caches): try: # uninstall() doesn't trim but does call save() implicitly. Trimming # *must* be done man...
Fix typo in doc/source/api/octaviaapi.rst Fix typo in doc/source/api/octaviaapi.rst
@@ -1803,7 +1803,7 @@ Layer 7 Rules Layer 7 rules are individual statements of logic which match parts of an HTTP request, session, or other protocol-specific data for any given client request. All the layer 7 rules associated with a given layer 7 policy -are logically ANDed together to see wether the policy matches a ...
Fix: documentation - remove old syntax Removed 'my_ship' from 'destination' in html example template.
@@ -731,7 +731,7 @@ way: Or a better way to get my ship model: {{my_ship.model}} <br> <h2>Loops</h2> {% for ship in groups['all'] %} - Ship {{ship}} is in the shipyard, and has destination {{hostvars[ship]['my_ship']['destination']}}. <br> + Ship {{ship}} is in the shipyard, and has destination {{hostvars[ship]['destin...
Fix Estimator role expansion Instead of manually constructing the role ARN, use the IAM boto client to do it. This properly expands service-roles and regular roles.
@@ -522,8 +522,8 @@ class Session(object): def expand_role(self, role): """Expand an IAM role name into an ARN. - If the role is already in the form of an ARN, then the role is simply returned. Otherwise, the role - is formatted as an ARN, using the current account as the IAM role's AWS account. + If the role is alread...
Remove explicitly enable neutron This patch removes, explicitly enabled neutron from local.conf as devstack now default uses neutron
@@ -24,13 +24,6 @@ MULTI_HOST=1 # This is the controller node, so disable nova-compute disable_service n-cpu -# Disable nova-network and use neutron instead -disable_service n-net -ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-agt,q-l3,neutron - -# Enable remote console access -enable_service n-cauth - # Enable the Watcher ...
Fix moto_server handling of unsigned requests Certain AWS requests are unsigned. Moto in standalone server mode implements an heuristic to deduce the endpoint and region based on the X-Amz-Target HTTP header. This commit extends this concept to add additional endpoints that used unsigned requests at times.
@@ -21,6 +21,16 @@ from moto.core.utils import convert_flask_to_httpretty_response HTTP_METHODS = ["GET", "POST", "PUT", "DELETE", "HEAD", "PATCH"] +DEFAULT_SERVICE_REGION = ('s3', 'us-east-1') + +# Map of unsigned calls to service-region as per AWS API docs +# https://docs.aws.amazon.com/cognito/latest/developerguide/...
added entry Police tackle and arrest protester, indiscriminately beat others with batons and shoot them with less lethals
@@ -75,6 +75,14 @@ Multiple police officers begin striking protestors with their batons. The video * https://streamable.com/ja2fw6 (with audio) * https://www.reddit.com/r/PublicFreakout/comments/gv8vaw/lapd_beating_and_shooting_peaceful_protesters_for/ +### Police tackle and arrest protester, indiscriminately beat othe...
warning in `_phi` actually why do we not put `_phi_divide` in `_phi`?
@@ -10,11 +10,10 @@ from .complexity_embedding import complexity_embedding # Phi # ============================================================================= - def _phi( signal, delay=1, dimension=2, tolerance="default", distance="chebyshev", approximate=True, fuzzy=False ): - """Common internal for `entropy_approxi...
Slight change to getting the keys of G.nodes May throw KeyError: 'Key 0 not found'
@@ -82,7 +82,7 @@ def from_networkx(G): edge_index = torch.tensor(list(G.edges)).t().contiguous() keys = [] - keys += list(G.nodes(data=True)[0].keys()) + keys += list(list(G.nodes(data=True))[0][1].keys()) keys += list(list(G.edges(data=True))[0][2].keys()) data = {key: [] for key in keys}
Refactor stream handling This places the control of stream creation and deletion in the base class and should ensure that streams are deleted.
@@ -57,6 +57,8 @@ class Server(asyncio.Protocol): class HTTPProtocol: + stream_class = Stream + def __init__( self, app: 'Quart', @@ -80,6 +82,7 @@ class HTTPProtocol: path: str, headers: CIMultiDict, ) -> None: + self.streams[stream_id] = self.stream_class(self.loop) headers['Remote-Addr'] = self.transport.get_extra_i...
Not enough values to unpack (expected 4, got 2) When contract test invoke is not successful, got error message ValueError: not enough values to unpack (expected 4, got 2)
@@ -234,12 +234,12 @@ def test_invoke(script, wallet, outputs): # tx.Gas = Fixed8.One() # tx.Attributes = [] # return tx, [] - return None,[] + return None,None, None, None except Exception as e: print("COULD NOT EXECUTE %s " % e) - return None,[] + return None,None, None, None
Fix missing import Why did I start editing code in a web browser?!
@@ -4,11 +4,10 @@ from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals - from mock import patch - from builtins import chr import unittest +import sys from mock.mock import MagicMock from asciimatics.event import KeyboardEve...
I think I found the problem, finally I'll still need to refine how I handle it, though. Right now I'm copying the strides and shape of each py::array to new arrays to be used in the CPU methods' structs
namespace py = pybind11; struct c_array py2c(py::array input) { - char format[8]; - strcpy(format, input.request().format.c_str()); + py::buffer_info info = input.request(); + + if (info.ndim > 15) { + throw std::invalid_argument("Array cannot exceed 15 dimensions"); + } + + char format[15]; + strcpy(format, info.forma...
Limit problem types by cell type Remove automatic options for the problem type in the create_assignments labextension when the notebook cell type is not code.
@@ -253,6 +253,10 @@ class CellWidget extends Panel { ['tests', 'Autograded task'], ['readonly', 'Read-only'] ]); + if (this.cell.model.type !== 'code') { + options.delete('solution'); + options.delete('tests'); + } const fragment = document.createDocumentFragment(); for (const optionEntry of options.entries()) { const...
Cleaner fix for python 2/3 in adb_device.py * Cleaner fix for python 2/3 in adb_device.py Cleaner fix for python 2/3 compatibility in adb_device.py * Update adb_device.py
@@ -30,9 +30,6 @@ function, but rather a USB function - listing devices with a specific interface class, subclass, and protocol. """ -try: - import cStringIO as io -except ImportError: import io import logging import os.path @@ -164,15 +161,14 @@ class AdbDevice(object): Returns: The file data if dest_file is not set, ...
Don't use `to_qubo()` Avoid performance hit from converting from 'SPIN' to 'BINARY'
@@ -176,8 +176,11 @@ class EmbeddingComposite(dimod.Sampler, dimod.Composite): # apply the embedding to the given problem to map it to the child sampler __, target_edgelist, target_adjacency = child.structure + # add self-loops to edgelist to handle singleton variables + source_edgelist = bqm.quadratic.keys() + [(v, v)...
Check the return code of the compiler This PR is about avoiding the cancellation of the build when the compiler raises a warning. We now raise a RuntimeError only if the compiler command returns a non-zero exit status. This closes
@@ -189,6 +189,7 @@ def create_shared_library(codegen, print(out) if len(err)>0: print(err) + if p.returncode != 0: raise RuntimeError("Failed to build module") sharedlib_folder += 'build/lib*/'
Add AUTO mode to HVAC According to KNX specification v2.1 3/7/2 Datapoint Types, section 4.3, DPT 20.102 value 0 is Auto
@@ -7,6 +7,7 @@ from .dpt import DPTBase class HVACOperationMode(Enum): """Enum for the different KNX HVAC operation modes.""" + AUTO = "Auto" COMFORT = "Comfort" STANDBY = "Standby" NIGHT = "Night" @@ -32,11 +33,15 @@ class DPTHVACMode(DPTBase): return HVACOperationMode.STANDBY elif raw[0] == 0x01: return HVACOperatio...
Update v_generate_tbl_ddl.sql Added clearer error for when the diststyle is unknown "<<Error - UNKNOWN DISTSTYLE>>"
@@ -189,7 +189,7 @@ FROM pg_namespace AS n WHEN c.reldiststyle = 1 THEN 'DISTSTYLE KEY' WHEN c.reldiststyle = 8 THEN 'DISTSTYLE ALL' WHEN c.reldiststyle = 9 THEN 'DISTSTYLE AUTO' - ELSE 'UNKNOWN' + ELSE '<<Error - UNKNOWN DISTSTYLE>>' END AS ddl FROM pg_namespace AS n INNER JOIN pg_class AS c ON n.oid = c.relnamespace
Update pysat/tests/test_utils.py kwarg dict in parametrize
@@ -512,10 +512,10 @@ class TestGenerateInstList(object): class TestDeprecation(object): """Unit test for deprecation warnings.""" - @pytest.mark.parametrize("fnames,f_fmt,msg_inds", - [(None, None, [0, 1]), - ('no_file', None, [0, 2])]) - def test_load_netcdf4(self, fnames, f_fmt, msg_inds): + @pytest.mark.parametrize...
Update setup.py Not sure if this is the best approach, but as it stands the binary the current hubble.service file is looking for (via /opt/hubble/hubble binary) doesn't exist. It was suggested to use a symlink in a prior PR, but the binary itself is non-existent in this case.
@@ -15,7 +15,7 @@ if distro == 'redhat' or distro == 'centos': data_files = [('/etc/init.d', ['pkg/hubble']), ('/etc/hubble', ['conf/hubble']), ] elif version.startswith('7'): - data_files = [('/usr/lib/systemd/system', ['pkg/hubble.service']), + data_files = [('/usr/lib/systemd/system', ['pkg/centos7/hubble.service'])...
Run CentOS tests on CentOS Stream CentOS 8 went EOL on 2022-01-31. Switch to CentOS Stream 8.
@@ -7,9 +7,14 @@ OS=${OS:="centos"} OS_VERSION=${OS_VERSION:="8"} PYTHON_VERSION=${PYTHON_VERSION:="3.8"} ACTION=${ACTION:="test"} -IMAGE="$OS:$OS_VERSION" CONTAINER_NAME="atomic-reactor-$OS-$OS_VERSION-py$PYTHON_VERSION" +if [[ "$OS" == centos ]]; then + IMAGE="quay.io/centos/centos:stream$OS_VERSION" +else + IMAGE="$...
Reorder parameters for the FPCA The constructor for `FPCA` receives parameters in a different order. This change fixes this.
@@ -107,8 +107,8 @@ class MahalanobisDistance(BaseEstimator): self.n_components, self.centering, self.regularization, - self.weights, self.components_basis, + self.weights, ) fpca.fit(X) self.eigenvalues_ = fpca.explained_variance_
[definitions] Make ResourceDefinition variables private Test Plan: Unit Reviewers: #ft, max
@@ -22,11 +22,23 @@ class ResourceDefinition(object): ''' def __init__(self, resource_fn, config_field=None, description=None): - self.resource_fn = check.callable_param(resource_fn, 'resource_fn') - self.config_field = check_user_facing_opt_field_param( + self._resource_fn = check.callable_param(resource_fn, 'resource...
[Datasets] Add AWS CLI info into S3 credential error messagee As followup of (comment), we want to add AWS CLI command information into S# credential error message, so users have a better idea to further debug the read issue.
@@ -346,7 +346,10 @@ def _handle_read_os_error(error: OSError, paths: Union[str, List[str]]) -> str: ( f"Failing to read AWS S3 file(s): {paths}. " "Please check that file exists and has properly configured access. " - "See https://docs.ray.io/en/latest/data/creating-datasets.html#reading-from-remote-storage " # noqa +...
don't log gearbot failed mass pings usually these are just from the modlogs
@@ -71,6 +71,8 @@ class ModLog(BaseCog): if Configuration.get_var(message.guild.id, "MESSAGE_LOGS", "ENABLED") and ( message.content != "" or len(message.attachments) > 0) and message.author.id != self.bot.user.id: await MessageUtils.insert_message(self.bot, message) + else: + return failed_mass_ping = 0 if "@everyone"...
Reorganize block store docs This change organizes the block store docs by topic rather than letting autodoc organize methods by the order they appear in the _proxy.py file.
@@ -12,5 +12,32 @@ The block_store high-level interface is available through the ``block_store`` member of a :class:`~openstack.connection.Connection` object. The ``block_store`` member will only be added if the service is detected. +Volume Operations +^^^^^^^^^^^^^^^^^ + +.. autoclass:: openstack.block_store.v2._proxy...
Fix an error in getting award km I noticed a crash when a buddy was already set, the start KM would be zero, crashing this logic. Simple fix; check if present and set to 0 when not found. Seems to do the trick.
@@ -264,6 +264,9 @@ class PokemonOptimizer(BaseTask): if distance_walked >= distance_needed: self.get_buddy_walked(pokemon) + # self.buddy["start_km_walked"] can be empty here + if 'start_km_walked' not in self.buddy: + self.buddy["start_km_walked"] = 0 self.buddy["last_km_awarded"] = self.buddy["start_km_walked"] + di...
Update CLI.md * Update CLI.md Update the suggested command template for "trust keys", to make it consistent with other examples. * Update docs/CLI.md Remove the + to avoid confusion.
@@ -153,7 +153,7 @@ itself. The --trust command-line option, in conjunction with --pubkeys and --role, can be used to indicate the trusted keys of a role. ```Bash -$ repo.py --trust --pubkeys --role +$ repo.py --trust --pubkeys </path/to/foo_key.pub> --role <rolename> ``` For example:
dsl_unparse: fix unparsing of foo._.at(n) It used to be unparsed as `foo??(n)` (incorrect) and now unparsed as `foo?(n)`. Found when unparsing LAL. TN:
@@ -533,7 +533,7 @@ def var_name(var_expr, default="_"): return unparsed_name(ret) -def is_a(expr, *names): +def expr_is_a(expr, *names): return any(expr.__class__.__name__ == n for n in names) @@ -543,7 +543,7 @@ def needs_parens(expr): return not ( isinstance(expr, (FieldAccess, Literal, AbstractVariable, BigIntLiter...
lightbox: Don't blow up for messages not in the message store. This should somewhat reduce the gravity of the failure mode for cases where the message the user clicked cannot be found (which would be a significant bug on its own merit in any case).
@@ -138,9 +138,10 @@ exports.open = function (image, options) { const message = message_store.get(zid); if (message === undefined) { blueslip.error("Lightbox for unknown message " + $message.attr("zid")); - } + } else { sender_full_name = message.sender_full_name; } + } payload = { user: sender_full_name, title: $paren...
minor fix I have fixed the function so that len(candidate_offsets) can't be zero.
@@ -5,7 +5,8 @@ import pandas as pd import scipy.signal from ..epochs import epochs_create, epochs_to_df -from ..signal import signal_findpeaks, signal_formatpeaks, signal_resample, signal_smooth, signal_zerocrossings +from ..signal import (signal_findpeaks, signal_formatpeaks, signal_resample, + signal_smooth, signal_...
add labels of PointsOfInterest missing dot patch (todo)
@@ -120,7 +120,10 @@ class FigureManager: if graphic.label.isRenderedOn(self.figure): labels.append(graphic.label) - labels.extend(self.labels) + for label in self.labels: + if label.isRenderedOn(self.figure): + labels.append(label) + return labels def fixLabelOverlaps(self, maxIteration: int = 5): @@ -252,7 +255,8 @@ ...
[tests] Give a more informative AssertionError Give a more informative AssertionError if assert does not match
@@ -336,7 +336,11 @@ class APISite(BaseSite): if login_manager.login(retry=True, autocreate=autocreate): self._username = login_manager.username del self.userinfo # force reloading - assert self.userinfo['name'] == self.username() # load userinfo + + # load userinfo + assert self.userinfo['name'] == self.username(), \ ...
[Fix] Fix license badge * Add serialization * fix broken badge * Revert "Add serialization" This reverts commit * fix
# Deep Graph Library (DGL) [![Build Status](http://ci.dgl.ai:80/buildStatus/icon?job=DGL/master)](http://ci.dgl.ai:80/job/DGL/job/master/) -[![GitHub license](https://dmlc.github.io/img/apache2.svg)](./LICENSE) +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](./LICENSE) [Documentation](https://...
Update avcodecs.py use correct vaapi keys
@@ -845,11 +845,11 @@ class H264VAAPI(H264Codec): optlist = super(H264VAAPI, self)._codec_specific_produce_ffmpeg_list(safe, stream) optlist.extend(['-vaapi_device', '/dev/dri/renderD128']) if 'vaapi_wscale' in safe and 'vaapi_hscale' in safe: - optlist.extend(['-vf', 'hwupload,%s=%s:%s:format=nv12' % (self.scale_filte...
Fix issue Disable textures after painting is finished.
@@ -152,6 +152,8 @@ class GLScatterPlotItem(GLGraphicsItem): glDisableClientState(GL_VERTEX_ARRAY) glDisableClientState(GL_COLOR_ARRAY) #posVBO.unbind() + ##fixes #145 + glDisable( GL_TEXTURE_2D ) #for i in range(len(self.pos)): #pos = self.pos[i]
Ensure CompImageHeader can be sliced and copied. With the __new__ method, we ensure the old behaviour of returning a Header instance is kept.
@@ -85,6 +85,9 @@ class CompImageHeader(Header): This essentially wraps the image header, so that all values are read from and written to the image header. However, updates to the image header will also update the table header where appropriate. + + Note that if no image header is passed in, the code will instantiate a...
Mention hiredis installation option. See
@@ -32,6 +32,14 @@ but you can override this with the ``hosts`` key in its config:: }, } +Consider `hiredis`_ library installation to improve layer performance:: + + pip install hiredis + +It will be used automatically if it's installed. + +.. _hiredis: https://github.com/redis/hiredis-py + Sharding ~~~~~~~~
Update whitelist.txt News site, not malware-distribution one.
@@ -2922,3 +2922,7 @@ nvpn.so # Note: rupor.info is legit news site, which was compromised in 2009 due to MDL database. On 2020-06-03 rupor.info is clean. rupor.info + +# Reference: https://www.virustotal.com/gui/domain/rusvesna.su/detection + +rusvesna.su
Fix crash with automod due to silent Discord breaking change Fix
@@ -419,7 +419,7 @@ class AutoModAction: The matched keyword from the triggering message. matched_content: Optional[:class:`str`] The matched content from the triggering message. - Requires the :attr:`Intents.message_content` or it will always return an empty string. + Requires the :attr:`Intents.message_content` or it...
Bump minimum Requests version 2.20.1 has issues, see
@@ -60,7 +60,7 @@ setup( install_requires=[ "feedparser >= 5.1.0", "pytz", - "requests", + "requests >= 2.21.0", "pathlib", "bibtexparser", ],
unicode message Fixes COMMCAREHQ-3J8
@@ -292,7 +292,7 @@ def handle_pillow_error(pillow, change, exception): error_id = error.id pillow_logging.exception( - "[%s] Error on change: %s, %s. Logged as: %s" % ( + u"[%s] Error on change: %s, %s. Logged as: %s" % ( pillow.get_name(), change['id'], exception,
create_snapshot: fail the execution when snapshot fails If snapshot creation fails, reraise so that we fail the execution. As opposed to returning "Snapshot creation failed. Execution succeeded".
@@ -75,6 +75,7 @@ class SnapshotCreate(object): except BaseException as e: self._update_snapshot_status(self._config.failed_status, str(e)) ctx.logger.error('Snapshot creation failed: {0}'.format(str(e))) + raise finally: ctx.logger.debug('Removing temp dir: {0}'.format(self._tempdir)) shutil.rmtree(self._tempdir)
ENH: Check input tlist in correlation_spectrum_fft * faster rcm * update norms * Remove rcm bucky test the use of int_argsort makes the exact perm array platform dependent. * Check for equally spaced tlist in correlation_fft
@@ -545,7 +545,7 @@ def spectrum(H, wlist, c_ops, a_op, b_op, solver="es", use_pinv=False): "%s (use es or pi)." % solver) -def spectrum_correlation_fft(taulist, y): +def spectrum_correlation_fft(tlist, y): """ Calculate the power spectrum corresponding to a two-time correlation function using FFT. @@ -567,12 +567,13 @...
actions: Add allow_deactivated option when fetching recipients. Preparatory commit to allow viewing group PM with deactivated users.
@@ -1866,7 +1866,8 @@ def get_recipient_from_user_ids(recipient_profile_ids: Set[int], return get_personal_recipient(list(recipient_profile_ids)[0]) def validate_recipient_user_profiles(user_profiles: List[UserProfile], - sender: UserProfile) -> Set[int]: + sender: UserProfile, + allow_deactivated: bool=False) -> Set[i...
[swarming] enable dead bot cron job I'll commit only once has been deployed everywhere.
@@ -14,12 +14,10 @@ cron: schedule: every 1 minutes target: backend -# TODO(maruel): https://crbug.com/826421 Enable once the default version is -# enabled. -#- description: Update BotInfo.composite for dead bots. -# url: /internal/cron/update_bot_info -# schedule: every 1 minutes -# target: backend +- description: Upd...
Added Deloitte to the list of users Planning to write/present about our use of Luigi in the near future, and move it up into the other list.
@@ -156,6 +156,7 @@ Some more companies are using Luigi but haven't had a chance yet to write about * `OAO <https://adops.com/>`_ * `Grovo <https://grovo.com/>`_ * `Weebly <https://www.weebly.com/>`_ +* `Deloitte <https://www.Deloitte.co.uk/>`_ We're more than happy to have your company added here. Just send a PR on Gi...
Add __init__ to MappingView and its subclasses While these implementations don't matter for the 'typing' module itself, these are also imported to serve as the implementations for the 'collection.abc' module. Fixes
@@ -339,10 +339,12 @@ class MutableSet(AbstractSet[_T], Generic[_T]): def __ixor__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ... def __isub__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ... -class MappingView: +class MappingView(Sized): + def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ......
don't restart service on failure this could cause an endless loop of restarts
@@ -8,8 +8,6 @@ NotifyAccess = exec ExecStart = {start_cmd} -c %i ExecStop = {stop_cmd} -c %i ExecStopPost=/usr/bin/env bash -c "if [ $SERVICE_RESULT!=success ]; then notify-send Maestral 'Daemon failed'; fi" -RestartSec = 1 -Restart = on-failure WatchdogSec = 30s [Install]
Update ml.ipynb Fixed a typo in the one hot encoder example
"metadata": {}, "outputs": [], "source": [ - "encoder = df.ml_one_hot_encoder([df.col.class_])\n", + "encoder = df.ml.one_hot_encoder([df.col.class_])\n", "df_encoded = encoder.transform(df)" ] },
Update send_notification utility to use dbus_next Previous version relied on gi.repository.Notify and checked for ImportError. Now that dbus_next is a requirement, we can use that to submit notifications instead.
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +import asyncio import functools import glob import importlib @@ -40,16 +41,6 @@ except ImportError: from libqtile.log_utils import logger -_can_notify = False -try: - import gi - gi.require_version("Notify", "0.7") # type: igno...
Fix ledger sign message there was an around ~1/128 chance of creating an invalid signature when signing a message with a ledger
@@ -334,7 +334,12 @@ class Ledger_KeyStore(Hardware_KeyStore): if sLength == 33: s = s[1:] # And convert it - return bytes([27 + 4 + (signature[0] & 0x01)]) + r + s + + # Pad r and s points with 0x00 bytes when the point is small to get valid signature. + r_padded = bytes([0x00]) * (32 - len(r)) + r + s_padded = bytes(...
Improve comment co-autored by Simon Cross (@hodgestar)
@@ -316,7 +316,10 @@ cdef class QobjEvo: t = self._prepare(t, None) if self.isconstant: - # When the QobjEvo is constant, it is usually made of only one Qobj + # For constant QobjEvo's, we sum the contained Qobjs directly in + # order to retain the cached values of attributes like .isherm when + # possible, rather than...
Add type annotation to get_project Now usage information for methods will actually show. project = client.get_project(PROJECT_ID) export_url = project.export_labels()
@@ -404,7 +404,7 @@ class Client: else: return db_object_type(self, res) - def get_project(self, project_id): + def get_project(self, project_id) -> Project: """ Gets a single Project with the given ID. >>> project = client.get_project("<project_id>")
mysql: fix deprecated storage_engine variable storage_engine variable has been deprecated in MySQL 5.5. default_storage_engine is a substitution fixes compatibility with MySQL 5.7
@@ -121,7 +121,7 @@ MYSQL_OPTIONS = { 'sql_mode': 'TRADITIONAL', 'charset': 'utf8', 'init_command': """ - SET storage_engine=INNODB; + SET default_storage_engine=INNODB; SET character_set_connection=utf8,collation_connection=utf8_unicode_ci; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED; """
Use bytes for hmac key For Python 3
@@ -26,7 +26,7 @@ class NetworkLogger(Logger): self.host = config_options["host"] self.port = int(config_options["port"]) self.hostname = socket.gethostname() - self.key = config_options["key"] + self.key = bytearray(config_options["key"], 'utf-8') except Exception: raise RuntimeError("missing config options for networ...
[core/theme] Dynamically create theme accessors Dynamically generate the accessors for a theme's attributes. NB: This might be even nicer coming from a JSON rather than inside the code.
@@ -22,6 +22,14 @@ class Theme(object): core.event.register('start', self.__start) core.event.register('next-widget', self.__next_widget) + for attr, default in [ + ('fg', None), ('bg', None), + ('default-separators', True), + ('separator-block-width', 0), + ('separator', None) + ]: + setattr(self, attr.replace('-', '_...
TST: added volume unit tests Added unit tests for volumetric unit scaling.
@@ -83,6 +83,7 @@ class TestScaleUnits(object): self.dist_units = ["m", "km", "cm"] self.vel_units = ["m/s", "cm/s", "km/s", 'm s$^{-1}$', 'cm s$^{-1}$', 'km s$^{-1}$', 'm s-1', 'cm s-1', 'km s-1'] + self.vol_units = ["m-3", "cm-3", "/cc", 'n/cc', 'm$^{-3}$', 'cm$^{-3}$'] self.scale = 0.0 return @@ -90,6 +91,7 @@ class...
doc: fix visual studio links Fixes: PR-URL:
@@ -54,22 +54,11 @@ Install all the required tools and configurations using Microsoft's [windows-bui #### Option 2 Install tools and configuration manually: - * Visual C++ Build Environment: - * Option 1: Install [Visual C++ Build Tools](http://landinghub.visualstudio.com/visual-cpp-build-tools) using the **Default Ins...
Handle exception when an interface doesn't support multicast [fixes Improved logic Additional DEBUG logging
@@ -93,22 +93,31 @@ def discover( MCAST_GRP = "239.255.255.250" MCAST_PORT = 1900 - _sockets = [] - # Use the specified interface, if any - if interface_addr is not None: + if interface_addr is not None: # Use the specified interface, if any try: - address = socket.inet_aton(interface_addr) + _ = socket.inet_aton(inter...
C API: add exceptions wrapping in struct primitives TN:
@@ -33,7 +33,11 @@ procedure ${dec_ref} (R : ${c_type_name}_Ptr) % if cls.is_refcounted(): procedure ${dec_ref} (R : ${c_type_name}_Ptr) is begin + Clear_Last_Exception; Dec_Ref (R.all); +exception + when Exc : others => + Set_Last_Exception (Exc); end ${dec_ref}; % endif
Fix Linksys.SPS2xx.get_mac_address_table script HG-- branch : feature/microservices
@@ -66,7 +66,7 @@ class Script(BaseScript): r.append({ "interfaces": [iface], "mac": chassis, - "type": {"3": "D", "2": "S", "1": "S"}[v[3]], + "type": {"3": "D", "2": "S", "1": "S"}[str(v[3])], "vlan_id": vlan_id, }) return r
secscan: update https proxy scheme Update the https proxy scheme from "https" to "http". The scheme was ignored prior to urllib3 1.26, which is why it was working.
@@ -281,7 +281,7 @@ class ImplementedSecurityScannerAPI(SecurityScannerAPIInterface): timeout=timeout, verify=MITM_CERT_PATH, headers=DEFAULT_HTTP_HEADERS, - proxies={"https": "https://" + signer_proxy_url, "http": "http://" + signer_proxy_url}, + proxies={"https": "http://" + signer_proxy_url, "http": "http://" + sign...
Update __init__.py add back accidentally deleted package
@@ -95,9 +95,9 @@ del get_versions __all__ = ['fatal_error', 'Params', 'Outputs', 'Spectral_data', 'deprecation_warning', 'print_image', 'plot_image', 'color_palette', 'apply_mask', 'gaussian_blur', 'transform', 'hyperspectral', 'readimage', 'readbayer', - 'laplace_filter', 'sobel_filter', 'scharr_filter', 'hist_equali...
Move setting of project root to dbcon fixture Previously root was only set for launched app, it should be available also for unit tests.
@@ -160,7 +160,7 @@ class ModuleUnitTest(BaseTest): db_handler.teardown(self.TEST_OPENPYPE_NAME) @pytest.fixture(scope="module") - def dbcon(self, db_setup): + def dbcon(self, db_setup, output_folder_url): """Provide test database connection. Database prepared from dumps with 'db_setup' fixture. @@ -170,6 +170,17 @@ cl...
argparse: fix for latest py39 and resulted in the issue being fixed upstream.
@@ -290,7 +290,6 @@ if sys.version_info >= (3, 9): self, option_strings: Sequence[str], dest: str, - const: None = ..., # unused in implementation default: Union[_T, str, None] = ..., type: Optional[Union[Callable[[Text], _T], Callable[[str], _T], FileType]] = ..., choices: Optional[Iterable[_T]] = ...,
update troubleshooting added exchange rate troubleshooting
@@ -159,3 +159,22 @@ AttributeError: 'NoneType' object has no attribute 'actions' ``` In this case, ZRX is not yet added to the list. See [this page](/utilities/paper-trade/#account-balance) on how to add balances. + +#### Cross-Exchange Market Making error in logs + +Errors will appear if the token value is unable to ...
small bug fix valid at super low mass flows under convergence tolerance
@@ -269,6 +269,9 @@ def calc_mass_flow_edges(edge_node_df, mass_flow_substation_df, all_nodes_df, pi if loops: # print('Fundamental loops in the network:', loops) #returns nodes that define loop, useful for visiual verification in testing phase, + sum_delta_m_num = np.zeros((1, len(loops)))[0] + sum_delta_m_den = np.ze...
db commits at the right places when sending payments. fixing vulnerabilities introduced in
@@ -44,6 +44,7 @@ def create_invoice( extra=extra, ) + g.db.commit() return invoice.payment_hash, payment_request @@ -97,6 +98,8 @@ def pay_invoice( if wallet.balance_msat < 0: g.db.rollback() raise PermissionError("Insufficient balance.") + else: + g.db.commit() if internal: # mark the invoice from the other side as n...
Use msgpack instead of msgpack-python The package msgpack-python has been deprecated.
@@ -53,7 +53,7 @@ REQUIREMENTS = [ "sortedcontainers>=1.4.4", "psutil>=2.0.0", "pymacaroons-pynacl>=0.9.3", - "msgpack-python>=0.4.2", + "msgpack>=0.5.0", "phonenumbers>=8.2.0", "six>=1.10", # prometheus_client 0.4.0 changed the format of counter metrics
Move parsing into lower layer in todo list Parse the arguments after determining the command. Add keywords for priority in addition to numerical values. Supported are 'critical', 'high' and 'normal'.
@@ -27,45 +27,63 @@ def sort(data): def todoHandler(data): global todoList - words = data.split() - s = words[1] if len(words) > 1 else "0" - arg = words[2] if len(words) > 2 else 0 if "add" in data: + data = data.replace("add", "", 1) if "comment" in data: - index = int(arg) + data = data.replace("comment", "", 1) + w...
Do not log a block launch if a block was not launched Prior to this PR, a block launched message was logged even if the launch failed and a ScalingFailed exception was raised. This was confusing.
@@ -176,8 +176,9 @@ class BlockProviderExecutor(ParslExecutor): def _launch_block(self, block_id: str) -> Any: launch_cmd = self._get_launch_command(block_id) job_id = self.provider.submit(launch_cmd, 1) + if job_id: logger.debug("Launched block {}->{}".format(block_id, job_id)) - if not job_id: + else: raise ScalingFa...
Remove PytestWarnings about collecting test classes The classes under tests.util are not destined to hold test cases.
@@ -456,6 +456,8 @@ class FakeFrontend(FrontendModule): class TestBackend(BackendModule): + __test__ = False + def __init__(self, auth_callback_func, internal_attributes, config, base_url, name): super().__init__(auth_callback_func, internal_attributes, base_url, name) @@ -474,6 +476,8 @@ class TestBackend(BackendModul...
Simplify PPO Summary: Pull Request resolved: We shouldn't need to yield the placeholder loss.
@@ -163,16 +163,16 @@ class PPOTrainer(ReAgentLightningModule): return opts[0], opts[1] return None, opts[0] - def placeholder_loss(self): - """PPO Trainer performs manual updates. Return placeholder losses to Pytorch Lightning.""" - return [None] * len(self.optimizers()) + # pyre-fixme[14]: `training_step` overrides m...
change travis config for ray installation this is for distributed computing
@@ -39,10 +39,10 @@ install: - conda create --yes -n test python=$TRAVIS_PYTHON_VERSION - source activate test - conda install --yes numpy scipy matplotlib pip nose - - conda install --yes -c bioconda ray - pip install setuptools - python setup.py install - pip install coveralls + - pip install ray script: coverage run...
Fixed broken code I should have tested it.
@@ -43,7 +43,7 @@ class YTDLSource(discord.PCMVolumeTransformer): @classmethod async def from_url(cls, url, *, loop=None): loop = loop or asyncio.get_event_loop() - data = await loop.run_in_executor(ytdl.extract_info, url) + data = await loop.run_in_executor(None, ytdl.extract_info, url) if 'entries' in data: # take fi...
Fix caption being None This would later be an empty string with some modifications that were removed upon upgrading to layer 75, which changed where the captions are used and their naming.
@@ -1200,7 +1200,7 @@ class TelegramClient(TelegramBareClient): # region Uploading files - def send_file(self, entity, file, caption=None, + def send_file(self, entity, file, caption='', force_document=False, progress_callback=None, reply_to=None, attributes=None, @@ -1420,7 +1420,7 @@ class TelegramClient(TelegramBare...
run compute_integrals after the initial run of the dynamic run to ensure that the logz errors are correct. That's needed only if no batches will be added.
@@ -938,6 +938,13 @@ class DynamicSampler: bounditer=results.bounditer, eff=self.eff, delta_logz=results.delta_logz) + new_vals = {} + (new_vals['logwt'], new_vals['logz'], new_vals['logzvar'], + new_vals['h']) = compute_integrals(logl=self.saved_run.D['logl'], + logvol=self.saved_run.D['logvol']) + for curk in ['logwt...
Un-normalize os_family in pkgrepo state The __grains__['os'].lower() code was added in but I don't know why. I hope this "fix" doesn't break anything.
@@ -319,7 +319,6 @@ def managed(name, ppa=None, **kwargs): enabled = True repo = name - os_family = __grains__['os_family'].lower() if __grains__['os'] in ('Ubuntu', 'Mint'): if ppa is not None: # overload the name/repo value for PPAs cleanly @@ -333,7 +332,7 @@ def managed(name, ppa=None, **kwargs): if enabled is not ...
Don't copy `storage.driver` into the Product defn on ingest Closes
@@ -49,7 +49,7 @@ def morph_dataset_type(source_type, config, index, storage_format): output_type.definition['managed'] = True output_type.definition['description'] = config['description'] output_type.definition['storage'] = {k: v for (k, v) in config['storage'].items() - if k in ('crs', 'driver', 'tile_size', 'resolut...