message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
Update cscs.py
Add TDS in description of Pilatus and remove collection for cpe modules | @@ -712,7 +712,7 @@ site_configuration = {
},
{
'name': 'pilatus',
- 'descr': 'Alps Cray EX Supercomputer',
+ 'descr': 'Alps Cray EX Supercomputer TDS',
'hostnames': [
'pilatus'
],
@@ -957,8 +957,8 @@ site_configuration = {
'eiger', 'pilatus'
],
'modules': [
- {'name': 'cpeAMD', 'collection': False}
- ]
+ 'cpeAMD'
+ ],... |
Update validators.py
adding deprecation message | @@ -519,6 +519,7 @@ class ValidateNestedInput:
output["Deprecations"] = [
"The sustain_hours output will be deprecated soon in favor of bau_sustained_time_steps.",
"outage_start_hour and outage_end_hour will be deprecated soon in favor of outage_start_time_step and outage_end_time_step",
+ "Avoided outage costs will be... |
Make .to(other) return the result for a value with all ones.
And fix .items() to directly return a tuple, for nicer interactive viewing. | @@ -9,7 +9,7 @@ import operator
import numpy as np
-from .core import Unit, UnitBase
+from .core import Unit, UnitBase, UNITY
__all__ = ['StructuredUnit']
@@ -167,7 +167,7 @@ class StructuredUnit:
return self._units.dtype.names
def items(self):
- return zip(self._units.dtype.names, self._units.item())
+ return tuple(zi... |
Use index instead of element when searching for a volume
`range` copies the elements by value. Avoid using it when searching for
volumes. This should improve overall performance when
`AppendVolumeIfNotExists` is used. | @@ -67,8 +67,8 @@ func IncludesArg(slice []string, arg string) bool {
}
func AppendVolumeIfNotExists(slice []v1.Volume, volume v1.Volume) []v1.Volume {
- for _, ele := range slice {
- if ele.Name == volume.Name {
+ for i := range slice {
+ if slice[i].Name == volume.Name {
return slice
}
}
|
Locking RAFT hash for 0.19
Authors:
- Corey J. Nolet (https://github.com/cjnolet)
Approvers:
- Dante Gama Dessavre (https://github.com/dantegd)
- John Zedlewski (https://github.com/JohnZed)
URL: | @@ -39,7 +39,7 @@ else(DEFINED ENV{RAFT_PATH})
ExternalProject_Add(raft
GIT_REPOSITORY https://github.com/rapidsai/raft.git
- GIT_TAG d1fd927bc4ec67bfd765620b5fa93f17c54cfa70
+ GIT_TAG f0cd81fb49638eaddc9bf18998cc894f292bc293
PREFIX ${RAFT_DIR}
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
|
remove subrefs
This patch removes the MosaicReference object's subrefs attribute and rewrites
its points method in terms of simplices. | @@ -1050,7 +1050,7 @@ class MosaicReference(Reference):
'triangulation'
__slots__ = 'baseref', '_edge_refs', '_midpoint', 'edge_refs', 'edge_transforms', 'vertices', '_imidpoint'
- __cache__ = 'subrefs', 'simplices'
+ __cache__ = 'simplices'
@types.apply_annotations
def __init__(self, baseref, edge_refs: tuple, midpoin... |
Fix OTB test on Fedora
The metrics and floats roundings seems to be slightly different on different
platforms. Using a lower line-height value should fix the problem everywhere.
Fix | @@ -845,7 +845,7 @@ def test_otb_font(assert_pixels):
color: red;
font-family: weasyprint-otb;
font-size: 4px;
- line-height: 1;
+ line-height: 0.8;
}
</style>
AaA''')
|
Adding string_encoding of utf-8 for MAVEN CDFs
Should fix the regression with EUV files not loading | @@ -263,11 +263,11 @@ def load_data(filenames=None,
# Loop through CDF files
desc = l2_regex.match(os.path.basename(f)).group("description")
if desc != '' and suffix == '':
- created_vars = pytplot.cdf_to_tplot(f, varformat=varformat, varnames=varnames,
+ created_vars = pytplot.cdf_to_tplot(f, varformat=varformat, varn... |
Workaround to compare some Float's
This will restore back evaluation of some comparisons
after e.g. Float('+inf') < pi or exp(-3) < Float('+inf'). | @@ -456,7 +456,9 @@ def _eval_is_irrational(self):
def _eval_is_positive(self):
if self.is_number:
- return super(Add, self)._eval_is_positive()
+ n = super(Add, self)._eval_is_positive()
+ if n is not None:
+ return n
if any(a.is_infinite for a in self.args):
args = [a for a in self.args if not a.is_finite]
@@ -483,7 ... |
[JIT] Add more ops to 'removableGuard' in guard elimination pass.
Summary: Pull Request resolved:
Test Plan: Imported from OSS | @@ -221,7 +221,23 @@ private:
case aten::div:
case aten::t:
case aten::sigmoid:
+ case aten::sin:
+ case aten::cos:
+ case aten::tan:
+ case aten::sinh:
+ case aten::cosh:
case aten::tanh:
+ case aten::asin:
+ case aten::acos:
+ case aten::atan:
+ case aten::atan2:
+ case aten::floor:
+ case aten::fmod:
+ case aten::ce... |
Open dashboard window asynchronously
Modified `dallinger debug` to open the dashboard asynchronously. | @@ -406,7 +406,12 @@ class DebugDeployment(HerokuLocalDeployment):
dashboard_url = self.with_proxy_port("{}/dashboard/".format(base_url))
self.display_dashboard_access_details(dashboard_url)
if not self.no_browsers:
- self.open_dashboard(dashboard_url)
+ self.async_open_dashboard(dashboard_url)
+
+ # A little delay her... |
Remove HTTPClient.last_request and last_response
Closes | @@ -27,10 +27,6 @@ class HTTPClient(Client):
# Make use of Requests' sessions feature
self.session = Session()
self.session.headers.update(self.DEFAULT_HEADERS)
- # Keep last request and response - don't use, will be removed in next
- # major release
- self.last_request = None
- self.last_response = None
def prepare_re... |
Update avcodecs.py
quotes | @@ -406,7 +406,7 @@ class VideoCodec(BaseCodec):
for line in vf:
vfstring = "%s:%s" % (line, vfstring)
- optlist.extend(['-vf', vfstring[:-1]])
+ optlist.extend(['-vf', "\'%s\'" % vfstring[:-1]])
return optlist
|
Add BiggerPockets.com
Add in BiggerPockets.com forum - a popular real estate forum
Examples:
Claimed: - returns a status code of 200
Unclaimed: - returns a status code of 404 | "username_claimed": "Jackson",
"username_unclaimed": "ktobysietaknazwalnawb69"
},
+ "BiggerPockets": {
+ "errorType": "status_code",
+ "url": "https://www.biggerpockets.com/users/{}",
+ "urlMain": "https://www.biggerpockets.com/",
+ "username_claimed": "blue",
+ "username_unclaimed": "noonewouldeverusethis7"
+ },
"Bike... |
fix : Flickering tooltip on the Give Up button
fix: | -<span ng-if="solutionIsAvailable()" tooltip="<['I18N_PLAYER_GIVE_UP_TOOLTIP' | translate]>">
+<span ng-if="solutionIsAvailable()" tooltip="<['I18N_PLAYER_GIVE_UP_TOOLTIP' | translate]>" tooltip-placement="left">
<md-button class="solution-button protractor-test-view-solution"
ng-click="onClickSolutionButton()"
aria-la... |
search aggregations for fields
* search aggregations for fields
fixes
* remove comment | @@ -7,7 +7,7 @@ from hail.utils.linkedlist import LinkedList
from hail.genetics import Locus, Interval, Call
from hail.typecheck import *
from collections import Mapping, Sequence, OrderedDict
-
+import itertools
class Indices(object):
@typecheck_method(source=anytype, axes=setof(str))
@@ -325,7 +325,7 @@ def unify_all... |
Fix to use . to source script files
Refer to ``Code conventions`` at [1] for details.
When you have to source a script file, for example, a credentials file
to gain access to user-only or admin-only CLI commands,
use . instead of source.
[1] | @@ -56,7 +56,7 @@ With `nose`
You can use `nose`_ to run individual tests, as well as use for debugging
portions of your code::
- source .venv/bin/activate
+ . .venv/bin/activate
pip install nose
nosetests
|
Update install.sh
Add testing for 'yum' && fedora-release. In a later step one could be testing 'dnf' and fedora separately. | @@ -46,13 +46,13 @@ if [ "$(uname)" = "Linux" ]; then
# Arch Linux
echo "Installing on Arch Linux"
sudo pacman -S --needed python git
- elif type yum && [ ! -f "/etc/redhat-release" ] && [ ! -f "/etc/centos-release" ]; then
+ elif type yum && [ ! -f "/etc/redhat-release" ] && [ ! -f "/etc/centos-release" ] && [ ! -f "/... |
fix(account adapter): render_to_string takes self.request
This adds request as an available context to all items using render_to_string, emails, messages ...etc. | @@ -111,8 +111,9 @@ class DefaultAccountAdapter(object):
for ext in ['html', 'txt']:
try:
template_name = '{0}_message.{1}'.format(template_prefix, ext)
- bodies[ext] = render_to_string(template_name,
- context).strip()
+ bodies[ext] = render_to_string(
+ template_name, context, self.request,
+ ).strip()
except Templat... |
Update sentinel-2-l2a-cogs.yaml
Added reference from CVPR2022 | @@ -82,6 +82,9 @@ DataAtWork:
- Title: STAC and Sentinel-2 COGs (ESIP Summer Meeting 2020)
URL: https://docs.google.com/presentation/d/14NsKFZ3UF2Swwx_9L7sPMX9ccFUK1ruQyZXWK9Cz4L4/edit?usp=sharing
AuthorName: Matthew Hanson
+ - Title: OpenSentinelMap: A Large-Scale Land Use Dataset using OpenStreetMap and Sentinel-2 Im... |
Update CHANGELOG.rst for 0.5.5
* Update CHANGELOG.rst
Bump unreleased changes to 0.5.5
* Update CHANGELOG.rst
Updating links
* Update CHANGELOG.rst
Extra newline for separating Unreleased changes section.
* Moving `Remove OpenQuantumCompiler` to unreleased. | @@ -18,6 +18,23 @@ The format is based on `Keep a Changelog`_.
`UNRELEASED`_
=============
+Added
+-----
+
+Changed
+-------
+
+Removed
+-------
+- Remove OpenQuantumCompiler (#610).
+
+Fixed
+-----
+
+
+`0.5.5`_ - 2018-07-02
+=====================
+
Added
-----
- Retrieve IBM Q jobs from server (#563, #585).
@@ -36,7 ... |
Add zoom instructions for the UML diagram
closes | .. _schemas:
An automatically generated UML diagram of the current schema can be seen below.
-Please open it a new tab for details. Containments are indicated by orange lines, whereas Id-references are indicated by dashed green lines.
+Please open it a new tab for details. Containments are indicated by orange lines, wh... |
Update methodology.html
Added link to Localization section | <li class="toctree-l1"><a class="reference internal" href="motivation.html">Motivation</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Methodology</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#carbon-intensity">Carbon Intensity</a></li>
+<li class="toctree-l2... |
Update `CUDA` Flags [skip ci]
This PR updates the flags for to ignore certain warnings from being treated as errors. This is a necessary hotfix to get DLFW builds to complete successfully. | @@ -28,7 +28,7 @@ list(APPEND CUML_CUDA_FLAGS --expt-extended-lambda --expt-relaxed-constexpr)
if(CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 11.2.0)
list(APPEND CUML_CUDA_FLAGS -Werror=all-warnings)
endif()
-list(APPEND CUML_CUDA_FLAGS -Xcompiler=-Wall,-Werror,-Wno-error=deprecated-declarations)
+list(APPEND CUM... |
Add --short flag to dagster-release version (for automation)
Test Plan: Manual
Reviewers: dgibson, alangenfeld, prha | @@ -152,7 +152,8 @@ def release(ver, dry_run):
@cli.command()
-def version():
+@click.option("--short", is_flag=True)
+def version(short):
"""Gets the most recent tagged version."""
dmp = DagsterModulePublisher()
@@ -170,6 +171,9 @@ def version():
git_tag=git_tag, versions=format_module_versions(module_versions)
)
)
+ ... |
Better error message in exception of deploy_done
We were just raising an exception with the path of the script rather than the
actual error. | @@ -11,7 +11,7 @@ def wait_for_applications(script, msg_cb):
""" Processes a 00_deploy-done to verify if applications are available
Arguments:
- script: script to run (00_deploy-done.sh)
+ script: script to run (00_deploy-done)
msg_cb: message callback
"""
if os.path.isfile(script) \
@@ -25,7 +25,9 @@ def wait_for_appl... |
Update savedmodel_test.py
I added a cast to `float32`. This is needed because of an obscure bug in JAX | @@ -83,7 +83,7 @@ class SavedModelTest(tf_test_util.JaxToTfTestCase):
x, = primals
x_dot, = tangents
primal_out = f_jax(x)
- tangent_out = 3. * x * x_dot
+ tangent_out = np.float32(3.) * x * x_dot
return primal_out, tangent_out
model = tf.Module()
|
Remove support for async script loading, as Firefox sets async
on all dynamically injected script tags.
Prevent repeated loading of the same tags. | @@ -23,6 +23,8 @@ export const runScriptTypes = [
];
export default function replaceScript($script, callback) {
+ if (!$script.loaded) {
+ $script.loaded = true;
const s = document.createElement('script');
s.type = 'text/javascript';
[].forEach.call($script.attributes, attribute => {
@@ -33,7 +35,6 @@ export default fu... |
Update extensions.py
dvd/dvb to mks | @@ -4,6 +4,9 @@ subtitle_codec_extensions = {'srt': 'srt',
'webvtt': 'vtt',
'ass': 'ass',
'pgs': 'sup',
- 'hdmv_pgs_subtitle': 'sup'}
+ 'hdmv_pgs_subtitle': 'sup',
+ 'dvdsub': 'mks',
+ 'dvb_subtitle': 'mks',
+ 'dvd_subtitle': 'mks'}
bad_post_files = ['resources', '.DS_Store']
bad_post_extensions = ['.txt', '.log', '.py... |
MAINT: simplify flow in np.require
Move the possible_flags dictionary to a global value so it is not
re-constructed each call. | __all__ = ["require"]
+POSSIBLE_FLAGS = {
+ 'C': 'C', 'C_CONTIGUOUS': 'C', 'CONTIGUOUS': 'C',
+ 'F': 'F', 'F_CONTIGUOUS': 'F', 'FORTRAN': 'F',
+ 'A': 'A', 'ALIGNED': 'A',
+ 'W': 'W', 'WRITEABLE': 'W',
+ 'O': 'O', 'OWNDATA': 'O',
+ 'E': 'E', 'ENSUREARRAY': 'E'
+}
+
def _require_dispatcher(a, dtype=None, requirements=Non... |
feat(device): add WXKG02LMSwitchController
related to | -from cx_const import Light, TypeActionsMapping
-from cx_core import LightController
+from cx_const import Light, Switch, TypeActionsMapping
+from cx_core import LightController, SwitchController
class WXKG02LMLightController(LightController):
- """
- This controller allows click, double click, hold and release for
- b... |
alias import
Somehow `connections` was referring to the `corehq.sql_db.connections` module | from django.apps import apps
from django.conf import settings
from django.core import checks
-from django.db import connections, DEFAULT_DB_ALIAS, router
+from django.db import connections as django_connections, DEFAULT_DB_ALIAS, router
from corehq.sql_db.exceptions import PartitionValidationError
@@ -122,7 +122,7 @@ d... |
Screengrab app : Rename `-scriptEditor` argument to `-pythonEditor`
Breaking Change :
Screengrab app : Renamed `-scriptEditor` argument to `-pythonEditor` | @@ -109,12 +109,12 @@ class screengrab( Gaffer.Application ) :
),
IECore.CompoundParameter(
- name = "scriptEditor",
- description = "Parameters that configure ScriptEditors.",
+ name = "pythonEditor",
+ description = "Parameters that configure PythonEditors.",
members = [
IECore.StringParameter(
name = "execute",
- de... |
components: Add basic styling component for guest avatar marker.
Fixes | background-color: hsl(0, 0%, 100%);
border: 1px solid hsl(0, 0%, 87%);
}
+
+.guest-avatar {
+ position: relative;
+ background-size: 100%;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+
+ &::after {
+ content: " ";
+ background-color: hsl(0, 0%, 47%);
+ position: absolute;
+ bottom: -30%;
+ right: -30%;
+ width: ... |
output_dir fix
Fixed error where output_dir was not appropriately set when using
NZBGetPostProcess | @@ -59,10 +59,9 @@ output_dir = None
if 'NZBPO_OUTPUT_DIR' in os.environ:
output_dir = os.environ['NZBPO_OUTPUT_DIR'].strip()
if len(output_dir) > 0:
- output_dir = os.environ['NZBPO_MP4_FOLDER'].strip()
- output_dir = MP4folder.replace('"', '')
- output_dir = MP4folder.replace("'", "")
- output_dir = MP4folder.replace... |
Suggest git submodule update --init --recursive
Summary:
We now have submodules that have submodules
Pull Request resolved: | @@ -457,7 +457,7 @@ class build_deps(PytorchCommand):
def check_file(f):
if not os.path.exists(f):
print("Could not find {}".format(f))
- print("Did you run 'git submodule update --init'?")
+ print("Did you run 'git submodule update --init --recursive'?")
sys.exit(1)
check_file(os.path.join(third_party_path, "gloo", "C... |
Update doc intro section; mention pywin32 [ci skip]
Slight wording change to program locations.
Move requirements paragraph to last in section, and
mention pywin32 is recommended on Windows. | @@ -214,9 +214,9 @@ that you want to use to build your target files
are not in standard system locations,
&scons;
will not find them unless
-you explicitly set the &scons;
-<envar>PATH</envar> in the internal environment
-to include those locations.
+you explicitly include the locations into the value of
+<varname>PATH... |
MAINT: Fix tests failures on travis CI merge.
Disable "-Wsign-compare" and "-Wunused-result" gcc warnings.
These seem to have been enabled by default recently for wheels
sdist builds. | @@ -138,6 +138,8 @@ if [ -n "$USE_WHEEL" ] && [ $# -eq 0 ]; then
# ensure that the pip / setuptools versions deployed inside
# the venv are recent enough
$PIP install -U virtualenv
+ # ensure some warnings are not issued
+ export CFLAGS=$CFLAGS" -Wno-sign-compare -Wno-unused-result"
$PYTHON setup.py bdist_wheel
# Make ... |
Add an intermediate class in the error class hierarchy
Add a class between StratisCliUserError and
StratisCliOverprovisionChangeError. Call it
StratisCliNoPropertyChangeError. | @@ -41,10 +41,10 @@ class StratisCliUserError(StratisCliRuntimeError):
"""
-class StratisCliOverprovisionChangeError(StratisCliUserError):
+class StratisCliNoPropertyChangeError(StratisCliUserError):
"""
- Raised when the user requests the same overprovision state that the pool
- already has. May in future be generaliz... |
io: Remove stale csv files
When exporting into an already existing directory, make sure to clean left-over
files from previous exports that are not overwritten. | @@ -111,11 +111,24 @@ def export_to_csv_folder(network, csv_folder_name, encoding=None, export_standar
#first do static attributes
-
+ filename = os.path.join(csv_folder_name,list_name+".csv")
df.index.name = "name"
if df.empty:
- logger.warning("No {} to export".format(list_name))
+ logger.info("No {} to export".forma... |
Add level/severity threshold for diagnostics panel opening
auto_show_diagnostics_panel_level, defaulted to 3 (info) | // depending on available diagnostics.
"auto_show_diagnostics_panel": true,
+ // Open the diagnostics panel automatically
+ // when diagnostics level is equal to or less than:
+ // error: 1
+ // warning: 2
+ // info: 3
+ // hint: 4
+ "auto_show_diagnostics_panel_level": 3,
+
// Show in-line diagnostics using phantoms f... |
[config] Update proto/Makefile
Update proto/Makefile to use compile_proto.py instead of protoc directly. | @@ -7,4 +7,4 @@ compile:
# Move the root of proto compilation to //appengine/components.
# This is consistent with other components assuming that "components"
# is in the import path.
- cd ../../../ && protoc --python_out=. components/config/proto/*.proto
+ cd ../../../ && tools/compile_proto.py components/config/proto... |
Correct Bug in move_to_laser
Math requires that the bounds be the group of the data so rotations are unaffected. | @@ -3813,15 +3813,14 @@ class Elemental(Modifier):
ty = input_driver.current_y
except AttributeError:
ty = 0
- m = Matrix("translate(%f,%f)" % (tx, ty))
try:
- for e in data:
- otx = e.transform.value_trans_x()
- oty = e.transform.value_trans_y()
+ bounds = Group.union_bbox([abs(e) for e in data])
+ otx = bounds[0]
+ o... |
Updated the doc to settle the confusion regarding Gregorian and Julian.
Updated BaseRepresentation.represent_as to to_cartesian since the former mentions example that is not there.
The former line was recursive, which arose confusion since the docstring belonged exclusively to "astropy.coordinates.BaseRepresentation.... | @@ -836,7 +836,7 @@ class BaseRepresentation(BaseRepresentationOrDifferential):
By default, conversion is done via Cartesian coordinates.
Also note that orientation information at the origin is *not* preserved by
conversions through Cartesian coordinates. See the docstring for
- `~astropy.coordinates.BaseRepresentation... |
"nested_path" needs to be specified in the sorting block as of elasticsearch 2.4
in v 1.7, this field was automatically determined based on the closest inherited nested field | @@ -155,6 +155,7 @@ class ApplicationStatusReport(GetParamsMixin, PaginatedReportMixin, DeploymentsR
sort_dict = {
sort_prop: {
"order": sort_dir,
+ "nested_path": "reporting_metadata.last_submissions",
"nested_filter": {
"term": {
self.sort_filter: self.selected_app_id
|
Add consensus message signature verification test
Add a unit test to verify this functions correctly | @@ -25,6 +25,9 @@ from sawtooth_validator.protobuf.transaction_pb2 import TransactionHeader, \
Transaction
from sawtooth_validator.protobuf.batch_pb2 import BatchHeader, Batch
from sawtooth_validator.protobuf.block_pb2 import BlockHeader, Block
+from sawtooth_validator.protobuf.consensus_pb2 import ConsensusPeerMessage... |
Navigation: Change + reorder links, add deprecation badges
This commit adds link to non-existing view, `all_workshoprequests`,
which triggers an error on all (or almost all) AMY pages. The view will
be added shortly. | {% navbar_element "Training requests" "all_trainingrequests" True %}
{% navbar_element "Bulk upload training request scores" "bulk_upload_training_request_scores" True %}
<div class="dropdown-divider"></div>
- {% navbar_element "Workshop requests" "all_eventrequests" True %}
- {% navbar_element "Workshop submissions" "... |
Fix for sed in write_bifrost_clouds_yaml function
Fixed sed replacement line. | @@ -627,7 +627,7 @@ function write_bifrost_clouds_yaml {
if [[ ! -f ~/.config/openstack/clouds.yaml ]]; then
mkdir -p ~/.config/openstack
scp stack@$SEED_IP:/home/stack/.config/openstack/clouds.yaml ~/.config/openstack/clouds.yaml
- sed -i 's|/home/stack/.config/openstack/bifrost.crt|~/.config/bifrost/bifrost.crt|g' ~/... |
convert weights using torch.as_tensor to avoid warning
Summary:
Minor change which fixes
Pull Request resolved: | @@ -116,7 +116,7 @@ class WeightedRandomSampler(Sampler):
if not isinstance(replacement, bool):
raise ValueError("replacement should be a boolean value, but got "
"replacement={}".format(replacement))
- self.weights = torch.tensor(weights, dtype=torch.double)
+ self.weights = torch.as_tensor(weights, dtype=torch.double... |
Fixes incorrect kind
Issues:
Fixes
Problem:
the kind in the sdk did not match the kind returned by iworkflow
Analysis:
this patch fixes it
Tests: | @@ -32,12 +32,12 @@ class Iapps(Collection):
def __init__(self, templates):
super(Iapps, self).__init__(templates)
self._meta_data['required_json_kind'] = \
- 'cm:cloud:templates:iapp:iapptemplatecollectionworkerstate'
+ 'cm:cloud:templates:iapp:templatesiappcollectionworkerstate'
self._meta_data['allowed_lazy_attribut... |
Remove autodiscovery and dmcrypt from cluster updates
remove osd autoiscovery from cluster shrink and expand
remove dmcrypt from cluster shrink and expand | @@ -702,8 +702,7 @@ tests:
ceph_stable_release: luminous
ceph_repository: rhcs
osd_scenario: collocated
- dmcrypt: True
- osd_auto_discovery: True
+ osd_auto_discovery: False
journal_size: 1024
ceph_stable: True
ceph_stable_rh_storage: True
@@ -745,8 +744,7 @@ tests:
ceph_stable_release: luminous
ceph_repository: rhcs
... |
Force pushing > multiple PRs (for the same issue)
Suggestions by | @@ -146,6 +146,7 @@ When working on your own changes, fork this repository, create a branch and subm
Give the pull request any name you like and submit it.
If there's already an open issue for your pull request, link it by including the line `fixes #[issue_id]` in the body of the pull request.
If you're not sure what t... |
Unit-test to verify behavior of chunked+insert_many.
Refs | @@ -159,6 +159,17 @@ class TestModelAPIs(ModelTestCase):
self.assertEqual(pd2['content'], 'p2')
self.assertEqual(pd2['timestamp'], ts2)
+ @requires_models(User)
+ def test_insert_many(self):
+ data = [('u%02d' % i,) for i in range(100)]
+ with self.database.atomic():
+ for chunk in chunked(data, 10):
+ User.insert_many... |
Add params.* to Jenkins file parameters
* Prefix all parameters with params.* so that it checks
whether parameters exist before using them
* This is a follow-up fix on so that existing PRs work
without being re-triggered manually twice | @@ -125,13 +125,13 @@ cancel_previous_build()
stage('Prepare') {
node('CPU') {
// When something is provided in ci_*_param, use it, otherwise default with ci_*
- ci_lint = ci_lint_param ?: ci_lint
- ci_cpu = ci_cpu_param ?: ci_cpu
- ci_gpu = ci_gpu_param ?: ci_gpu
- ci_wasm = ci_wasm_param ?: ci_wasm
- ci_i386 = ci_i38... |
Don't call get..Queue on non-existing one,
failed after latest updates | @@ -47,10 +47,6 @@ nn2.setBlobPath(str((Path(__file__).parent / Path('text-recognition-0012.blob'))
manip.out.link(nn2.input)
manip.out.link(manip_xout.input)
-#nn2_in = pipeline.createXLinkIn()
-#nn2_in.setStreamName("in_recognition")
-#nn2_in.out.link(nn2.input)
-
nn2_xout = pipeline.createXLinkOut()
nn2_xout.setStre... |
5xx: Change min-height to reflect new footer.
The min-height for the error pages was not updated to reflect the
height of the new footer, so this updates the value and makes it a
non-scrolling page in most browsers again. | @@ -1752,7 +1752,8 @@ input.new-organization-button {
}
.error_page {
- min-height: calc(100vh - 64px);
+ padding: 20px 0px;
+ min-height: calc(100vh - 290px);
background-color: #c9e9e0;
font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
}
|
Guard against zero-length permutations in IndexedArray
Fixes | @@ -43,6 +43,8 @@ class IndexedArray(awkward.array.base.AwkwardArrayWithContent):
@classmethod
def invert(cls, permutation):
+ if permutation.size == 0:
+ return cls.numpy.zeros(0, dtype=cls.IndexedArray.fget(None).INDEXTYPE)
permutation = permutation.reshape(-1)
out = cls.numpy.zeros(permutation.max() + 1, dtype=cls.I... |
Reorganize orchestration docs
This change organizes the orchestration docs by topic rather than
letting autodoc organize methods by the order they appear in the
_proxy.py file. | @@ -13,5 +13,38 @@ The orchestration high-level interface is available through the
object. The ``orchestration`` member will only be added if the service
is detected.
+Stack Operations
+^^^^^^^^^^^^^^^^
+
+.. autoclass:: openstack.orchestration.v1._proxy.Proxy
+
+ .. automethod:: openstack.orchestration.v1._proxy.Proxy... |
fixing value error and documentation in blob.py
Closing this. should cover the click issues. | @@ -57,7 +57,7 @@ class BlobDetector(SpotFinderAlgorithmBase):
measurement_type : str ['max', 'mean']
name of the function used to calculate the intensity for each identified spot area
detector_method: str ['blob_dog', 'blob_doh', 'blob_log']
- name of the type of detection method used from skimage.feature
+ name of th... |
Only send articles to user
Added the "kind": "article" parameter to the API request. This should
only return articles to the user instead of courses, lessons
or quizzes.
Also updated the "Here are the top x results" message to handle a
variable amount of articles.
[Ticket: python-discord#828] | @@ -33,7 +33,7 @@ class RealPython(commands.Cog):
@commands.cooldown(1, 10, commands.cooldowns.BucketType.user)
async def realpython(self, ctx: commands.Context, *, user_search: str) -> None:
"""Send 5 articles that match the user's search terms."""
- params = {"q": user_search, "limit": 5}
+ params = {"q": user_search... |
scripts: Don't terminate current session in terminate-psql-sessions.
This is a prep commit. Running terminate-psql-sessions command on
docker-zulip results in the script exiting with non-zero exit status
2. This is because the current session also gets terminated while
running terminate-psql-sessions command. To preven... | @@ -32,5 +32,6 @@ SELECT pg_terminate_backend(s.pid)
WHERE
s.datname IN ($tables)
AND r.rolname = CURRENT_USER
- AND (s.usename = r.rolname OR r.rolsuper = 't');
+ AND (s.usename = r.rolname OR r.rolsuper = 't')
+ AND s.pid <> pg_backend_pid();
EOF
|
Update Dockerfile to include mysqlclient
cc: | FROM python:3.9-slim-buster as builder
COPY requirements.txt /tmp
-RUN apt update && apt install -y build-essential libpq-dev
+RUN apt update && apt install -y build-essential libpq-dev libmariadb-dev
RUN \
if [ `dpkg --print-architecture` = "armhf" ]; then \
printf "[global]\nextra-index-url=https://www.piwheels.org/s... |
Tidy up an error message
`Sorry` is an exception, not a `logging` method. With `logging` methods, you can pass a tuple of strings and `strings[1:]` are evaluated to populate any string substitutions in `strings[0]`. Exception values don't do that. | @@ -299,9 +299,9 @@ def prepare_input(params, experiments, reflections):
"""The experiments have different space groups:
space group numbers found: %s
Please reanalyse the data so that space groups are consistent,
- (consider using dials.reindex, dials.symmetry or dials.cosym)
- or remove incompatible experiments (usin... |
hiero: otio p3 compatibility issue - metadata on effect use update
rather then __setter__ | @@ -132,7 +132,7 @@ def create_time_effects(otio_clip, track_item):
otio_effect = otio.schema.TimeEffect()
otio_effect.name = name
otio_effect.effect_name = effect_name
- otio_effect.metadata = metadata
+ otio_effect.metadata.update(metadata)
# add otio effect to clip effects
otio_clip.effects.append(otio_effect)
|
Document let option for aggregate
Document $out/$merge usage for aggregate | @@ -547,6 +547,11 @@ class AgnosticDatabase(AgnosticBaseProperties):
returning aggregate results using a cursor.
- `collation` (optional): An instance of
:class:`~pymongo.collation.Collation`.
+ - `let` (dict): A dict of parameter names and values. Values must be
+ constant or closed expressions that do not reference d... |
2.3.2
Automatically generated by python-semantic-release | @@ -9,7 +9,7 @@ https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers
"""
from datetime import timedelta
-__version__ = '2.3.1'
+__version__ = '2.3.2'
PROJECT_URL = "https://github.com/custom-components/alexa_media_player/"
ISSUE_URL = "{}issues".format(PROJECT_URL)
|
Add metric conversion to bearing elements from table
The conversion to metric when bearings were instantiated from table was
left out by mistake. I'm adding it now. | @@ -208,11 +208,21 @@ def read_table_file(file, element, sheet_name=0, n=0, sheet_type="Model"):
parameters['material'] = new_material
if convert_to_metric:
for i in range(0, df.shape[0]):
+ if element == 'bearing':
+ parameters['kxx'][i] = parameters['kxx'][i] * 175.1268369864
+ parameters['cxx'][i] = parameters['cxx'... |
Changelog for 0.7.3
Summary:
---
Pull Request resolved: | The release log for BoTorch.
+## [0.7.3] - Nov 10, 2022
+
+### Highlights
+* #1454 fixes a critical bug that affected multi-output `BatchedMultiOutputGPyTorchModel`s that were using a `Normalize` or `InputStandardize` input transform and trained using `fit_gpytorch_model/mll` with `sequential=True` (which was the defau... |
bugfix: avoid division by zero
if points are on a planar, points.std(axis=0) will result a zero value in points_std | @@ -249,6 +249,7 @@ def k_means(points, k, **kwargs):
points = np.asanyarray(points, dtype=np.float64)
points_std = points.std(axis=0)
+ points_std[points_std == 0] = 1
whitened = points / points_std
centroids_whitened, distortion = kmeans(whitened, k, **kwargs)
centroids = centroids_whitened * points_std
|
Improve type annotations related to TransformerChains
With this mypy will raise an error is the code attemps to use __mul__ when the
left hand side does not produce a Tree | -from typing import TypeVar, Tuple, List, Callable, Generic, Type, Union, Optional
+from typing import TypeVar, Tuple, List, Callable, Generic, Type, Union, Optional, cast
from abc import ABC
from functools import wraps
@@ -11,7 +11,9 @@ from .lexer import Token
from inspect import getmembers, getmro
_Return_T = TypeVa... |
Update Dockerfile to use pip-installed Grow. Note that the git URL
should be pinned to a release however using this for now for testing the
Docker workflow. | FROM ubuntu
MAINTAINER Grow SDK Authors <hello@grow.io>
-
-RUN apt-get update && apt-get install -y python python-pip git curl nodejs npm
+RUN apt-get update && \
+ apt-get install -y \
+ python \
+ python-pip \
+ libyaml-dev \
+ git \
+ nodejs \
+ npm
+RUN ln -s /usr/bin/nodejs /usr/bin/node
RUN npm install -g bower
R... |
Update v_generate_tbl_ddl.sql
updated History | @@ -42,6 +42,7 @@ History:
2016-05-24 chriz-bigdata Added support for BACKUP NO tables
2017-05-03 pvbouwel Change table & schemaname of Foreign key constraints to allow for filters
2018-01-15 pvbouwel Add QUOTE_IDENT for identifiers (schema,table and column names)
+2018-05-30 adedotua Add table_id column
**************... |
Split build and run of Docker container.
Split commands to get separate logs in CI. | @@ -22,6 +22,9 @@ jobs:
steps:
- uses: actions/checkout@v2
+ - name: Build Docker
+ run: |
+ make docker-qa-build PYTHON_VERSION=${{matrix.python-version}}
- name: Run Docker
run: |
.github/bump_version ./ minor > atlassian/VERSION
|
Logging: add explicit admin email sending
Use email backend specified in settings.
Send HTML, too. | @@ -464,6 +464,12 @@ LOGGING = {
'null': {
'class': 'logging.NullHandler',
},
+ 'mail_admins': {
+ 'level': 'ERROR',
+ 'class': 'django.utils.log.AdminEmailHandler',
+ 'email_backend': EMAIL_BACKEND,
+ 'include_html': True,
+ },
},
'loggers': {
# disable "Invalid HTTP_HOST" notifications
|
EmbeddingComposite accepts a find_embedding function
It also accepts an embedding_parameters dict to provide missing
arguments to find_embedding | # See the License for the specific language governing permissions and
# limitations under the License.
#
-# ================================================================================================
+# =============================================================================
import unittest
import warnings
@@... |
Added error exception
Used try, except to add error exceptions for invalid file names | -"""Get the number of each character in any given text.
+"""Get the number of each character in any given text.
Inputs:
A txt file -- You will be asked for an input file. Simply input the name
of the txt file in which you have the desired text.
-
"""
import pprint
@@ -13,12 +12,16 @@ import collections
def main():
file... |
[Stress Tester XFails] Update XFails
was previously shadowed.
was introduced by | "main"
],
"issueUrl" : "https://bugs.swift.org/browse/SR-14627"
+ },
+ {
+ "path" : "*\/Dollar\/Sources\/Dollar.swift",
+ "issueDetail" : {
+ "kind" : "codeComplete",
+ "offset" : 5654
+ },
+ "applicableConfigs" : [
+ "main"
+ ],
+ "issueUrl" : "https://bugs.swift.org/browse/SR-14636"
+ },
+ {
+ "path" : "*\/Dollar\/So... |
Update __init__.py
version bump | @@ -5,7 +5,7 @@ from pathlib import Path
bl_info = {
"name": "Source Engine model(.mdl, .vvd, .vtx)",
"author": "RED_EYE",
- "version": (3, 3),
+ "version": (3, 3, 4),
"blender": (2, 80, 0),
"location": "File > Import-Export > SourceEngine MDL (.mdl, .vvd, .vtx) ",
"description": "Addon allows to import Source Engine m... |
Ensure trio-based components don't get a double SIGINT
Our trio-based components are still running on the same process group
of the main process, but we were also attempting to forcibly kill
them, so they'd get a double SIGINT, causing them to raise a
KeyboardInterrupt when handling the first SIGINT. This fixes that | @@ -7,8 +7,7 @@ from async_service import background_trio_service
from lahja import EndpointAPI
-from trinity._utils.ipc import kill_process_gracefully
-from trinity._utils.logging import child_process_logging, get_logger
+from trinity._utils.logging import child_process_logging
from trinity._utils.mp import ctx
from t... |
Add Urdu to languages for testing purposes.
Amend Changelog. | @@ -5,6 +5,12 @@ Release Notes
Changes are ordered reverse-chronologically.
+0.6
+---
+
+ - Add support for RTL languages
+
+
0.5
---
|
Arnold ShaderMenu : Improve naming of nodes and light locations
Follow the camel-case convention for other newly-created nodes.
Name light locations to match the type of the light. | @@ -63,6 +63,7 @@ def appendShaders( menuDefinition, prefix="/Arnold" ) :
nodeEntry = arnold.AiNodeEntryIteratorGetNext( it )
shaderName = arnold.AiNodeEntryGetName( nodeEntry )
displayName = " ".join( [ IECore.CamelCase.toSpaced( x ) for x in shaderName.split( "_" ) ] )
+ nodeName = displayName.replace( " ", "" )
cate... |
Removes unused queryset argument from base method.
Stops shadowing built in filter function. | @@ -54,8 +54,8 @@ class BasePermissions(object):
"Override `user_can_delete_object` in your permission class before you use it."
)
- def readable_by_user_filter(self, user, queryset):
- """Applies a filter to the provided queryset, only returning items for which the user has read permission."""
+ def readable_by_user_f... |
Update README.md
Fixed a couple typos. | @@ -12,14 +12,14 @@ remote.
## What's its purpose?
gitfs was designed to bring the full powers of git to everyone, no matter how
-little they know about versioning. A user can mount any repository and all the
-his changes will be automatically converted into commits. gitfs will also expose
+little they know about versi... |
Add max_weight parameter to CRR
Summary: Exposes the upper bound clip limit for action weights in CRR as a max_weight parameter | # Note: this files is modeled after td3_trainer.py
-import copy
import logging
from typing import List, Tuple
@@ -59,6 +58,7 @@ class DiscreteCRRTrainer(DQNTrainerBaseLightning):
beta: float = 1.0,
entropy_coeff: float = 0.0,
clip_limit: float = 10.0,
+ max_weight: float = 20.0,
) -> None:
"""
Args:
@@ -85,6 +85,7 @@ c... |
added __len__ function
* added __len__ function
Added a function to count number of nodes in linked list
* Updated __len__ method
used snake_case instead of camel case
* Add tests to __len__() | @@ -107,6 +107,35 @@ class LinkedList:
current = current.next
current.data = data
+ def __len__(self):
+ """
+ Return length of linked list i.e. number of nodes
+ >>> linked_list = LinkedList()
+ >>> len(linked_list)
+ 0
+ >>> linked_list.insert_tail("head")
+ >>> len(linked_list)
+ 1
+ >>> linked_list.insert_head("hea... |
add failing testcase
Parametrizes the app fixture to supply apps with and without extra-flags. Not the smallest possible testcase but it does the trick for now | @@ -159,17 +159,20 @@ def output_path(tmp_path):
return output_path
+@pytest.fixture(params=[None, ["FLAG"]])
+def flag(request):
+ return request.param
+
@pytest.fixture
-def app(output_path, project_path):
+def app(output_path, project_path, flag):
project = Project.from_path(project_path)
env = Environment(project, ... |
Change Alpine install command
Use gdk-pixbuf-dev instead of gdk-pixbuf | @@ -159,7 +159,7 @@ For Alpine Linux 3.6 or newer:
.. code-block:: sh
- apk --update --upgrade add gcc musl-dev jpeg-dev zlib-dev libffi-dev cairo-dev pango-dev gdk-pixbuf
+ apk --update --upgrade add gcc musl-dev jpeg-dev zlib-dev libffi-dev cairo-dev pango-dev gdk-pixbuf-dev
.. _macos:
|
Display model file name and path in header
Just like Glade does. | @@ -37,6 +37,8 @@ from gaphor.ui.toolbox import Toolbox
log = logging.getLogger(__name__)
+HOME = str(Path.home())
+
class RecentFilesMenu(Gio.Menu):
def __init__(self, recent_manager):
@@ -50,11 +52,10 @@ class RecentFilesMenu(Gio.Menu):
def _on_recent_manager_changed(self, recent_manager):
self.remove_all()
- home = ... |
[ci] Add second bazel mirror
Builds are currently failing because `mirror.bazel.build`'s SSL certificate expired. This PR adds another bazel mirror to avoid this problem.
Builds are still failing because explicitly lists `mirror.bazel.build`. | @@ -37,7 +37,7 @@ def auto_http_archive(
If strip_prefix == True , it is auto-deduced.
"""
DOUBLE_SUFFIXES_LOWERCASE = [("tar", "bz2"), ("tar", "gz"), ("tar", "xz")]
- mirror_prefixes = ["https://mirror.bazel.build/"]
+ mirror_prefixes = ["https://mirror.bazel.build/", "https://storage.googleapis.com/bazel-mirror"]
can... |
Update EPS_Screen.kv
Adjustment of Value/Units definition. | ##----------------------------------------------------------------------
Label:
id: angle_label
- pos_hint: {"center_x": 0.5, "center_y": 0.17}
+ pos_hint: {"center_x": 0.5, "center_y": 0.19}
text: 'Angle = deg'
markup: True
color: 1,1,1
font_size: 20
Label:
id: current_label
- pos_hint: {"center_x": 0.5, "center_y": 0... |
Fixes bug introduced in last commit.
In particular, we shouldn't call bulk_probs for the non-parametric
bootstrap mode. | @@ -86,7 +86,9 @@ def create_bootstrap_dataset(input_data_set, generation_method, input_model=None
simDS = _obj.DataSet(outcome_labels=outcome_labels,
collision_action=input_data_set.collisionAction)
circuit_list = list(input_data_set.keys())
- probs = input_model.sim.bulk_probs(circuit_list)
+ probs = input_model.sim.... |
Add large experiment for all UM fuzzers
Adding new experiment for all UM fuzzers | # Please add new experiment requests towards the top of this file.
#
+- experiment: 2022-10-06-um-full
+ description: "UM fuzzer experiment"
+ fuzzers:
+ - aflplusplus
+ - aflplusplus_um_parallel
+ - aflplusplus
+ - libfuzzer_um_prioritize
+ - libfuzzer_um_random
+ - libfuzzer_um_parallel
+ - libfuzzer
+ - afl_um_prior... |
fix display of figures in GitHub
Figure specification for example circuits was using wildcard
extension, which is allowed for Sphinx, but doesn't work for GitHub. | @@ -524,7 +524,7 @@ uses a pair of :math:`\pi/2`-pulses.
Quantum teleportation
---------------------
-.. figure:: _static/teleport.*
+.. figure:: _static/teleport.png
:name: teleport
Example of quantum teleportation. Qubit q[0] is prepared by
@@ -537,7 +537,7 @@ outcomes.
Quantum Fourier transform
---------------------... |
Make Sandbox Tutorial more Intuitive
Added a code cell to display the populated datasets on a worker
Changed the initial search from boston housing tags to custom tags
Added the boston housing dataset search at a later stage | "bob"
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "You can view the pre-populated datasets on a given worker by doing the following:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "bob._objects"
+ ]
+ },
{
"cell_type": "markdo... |
Reintroduce error handling for pipeline export
The error handling for the case of no runtimes when exporting a
pipeline was removed in this reintroduces it without reverting
the solution in that PR | @@ -587,15 +587,17 @@ const PipelineWrapper: React.FC<IProps> = ({
allowLocal: actionType === 'run'
});
- let title = `${actionType} pipeline`;
- if (type !== undefined) {
- title = `${actionType} pipeline for ${runtimeDisplayName}`;
+ let title =
+ type !== undefined
+ ? `${actionType} pipeline for ${runtimeDisplayNam... |
If indices of refraction don't match between elements, it is an error
Except in the case of Space(), we raise an error if indices don't match when appending to MatrixGroup. | @@ -36,8 +36,14 @@ class MatrixGroup(Matrix):
if len(self.elements) != 0:
lastElement = self.elements[-1]
if lastElement.backIndex != matrix.frontIndex:
- msg = "Mismatch of indices between element {0} and appended {1}".format(lastElement, matrix)
+ if isinstance(matrix, Space): # For Space(), we fix it
+ msg = "Fixing... |
Updating the updater to use pipenv to perform grow updates.
Fixes | @@ -16,8 +16,7 @@ from grow.sdk import sdk_utils
RELEASES_API = 'https://api.github.com/repos/grow/grow/releases'
TAGS_URL_FORMAT = 'https://github.com/grow/grow/releases/tag/{}'
-INSTALLER_COMMAND = ('/usr/bin/python -c "$(curl -fsSL '
- 'https://raw.github.com/grow/grow/master/install.py)"')
+INSTALLER_COMMAND = 'pip... |
downloader: hash files while they're downloading
This avoid rereading the entire file from disk once it's written. | @@ -36,12 +36,15 @@ CHUNK_SIZE = 1 << 15 if sys.stdout.isatty() else 1 << 20
def process_download(reporter, chunk_iterable, size, file):
start_time = time.monotonic()
progress_size = 0
+ hasher = hashlib.sha256()
try:
for chunk in chunk_iterable:
if chunk:
duration = time.monotonic() - start_time
progress_size += len(c... |
GDB helpers: attach GDB frames to State instances
TN: | @@ -21,7 +21,14 @@ class State(object):
Holder for the execution state of a property.
"""
- def __init__(self, line_no, prop):
+ def __init__(self, frame, line_no, prop):
+ self.frame = frame
+ """
+ :type: gdb.Frame
+
+ The GDB frame from which this state was decoded.
+ """
+
self.property = prop
"""
:type: langkit.gd... |
Fix the link text
Probably a copy-n-paste error. Pascal not relevant here. | @@ -17,7 +17,7 @@ Welcome to Sample Programs in Perl!
## References
- [Perl Wiki][4]
-- [Pascal Docs][5]
+- [Perl Docs][5]
- [Online Perl Interpreter][6]
[1]: https://therenegadecoder.com/code/hello-world-in-perl
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.