closember
Here are 44 public repositories matching this topic...
While working on my i18n_subsites plugin, I came up with an idea how to simplify some code that is often used in Pelican: doing stuff with a temporarily different locale.
This could be neatly solved by a context manager:
from contextlib import contextmanager
import locale
@contextmanager
def temporary_locale(temp_locale=None):
'''Enable code to run in a context with a temporary loThese are all functions/structs for configuring the same thing:
https://github.com/thanos-io/thanos/blob/5bda2d48b9ef0bf138af6132641eb20102223edb/pkg/objstore/azure/helpers.go#L121
https://github.com/thanos-io/thanos/blob/46ac4d590e783368fc4ec7676f29ff97cd0bd630/pkg/objstore/cos/cos.go#L95
https://github.com/thanos-io/thanos/blob/bf963237e0b95402aeea4093dce465abde055675/pkg/objstore/s3/s3.go#
scipy.signal.bspline gives zero output for integer types. This also affects quadratic and cubic.
Reproducing code example:
An example of an incorrect result
>>> from scipy.signal import bspline, quadratic, cubic
>>> bspline(np.array([-3,-2,-1,0,1,2,3]), 6)
array([0, 0, 0, 0, 0, 0, 0])
What was expected
>>> bspline(np.array([-3,-2,-1,0,1,2,3]).astype(float), 6)
array
Now that #3490 has been merged, we should add more prometheus metrics to the notebook server!
Some ideas for metrics to add...
- Number of kernels running (labeled by type)
- Number of sessions open (not sure if this is useful?)
- Number of terminals open
- Mirror of the activity tracking metrics
- Kernel start / stop latency metric
-
Updated
Nov 10, 2021 - Python
-
Updated
Nov 10, 2021 - Python
-
Updated
Nov 4, 2021
-
Updated
Nov 10, 2021 - Python
Describe the bug
According to the multiscene documentation, the property all_same_area does:
Determine if all contained Scenes have the same ‘area’.
However, I have created a multiscene where all scenes have the same area (they just differ between datasets), yet the property returns Fa
-
Updated
Nov 10, 2021 - Python
-
Updated
Nov 9, 2021 - Python
$ PYTHONPATH=$PWD sphinx-build -b man -d traitlets docs/source .
Running Sphinx v3.5.4
Initializing GitHub plugin
loading intersphinx inventory from https://docs.python.org/objects.inv...
intersphinx inventory has moved: https://docs.python.org/objects.inv -> https://docs.python.org/3/objects.inv
building [mo]: targets for 0 po files that are out of date
building [man]: all manpa-
Updated
Nov 8, 2021 - Python
-
Updated
Nov 8, 2021 - Python
During local tests got following test failure
======================================================================
ERROR: datalad.downloaders.tests.test_s3.test_restricted_bucket_on_NDA('s3://NDAR_Central_4/submission_23075/README', 'error', 'BIDS')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.9/url
Code Sample, a minimal, complete, and verifiable piece of code
from pyresample.boundary import Boundary
b = Boundary(my_lons, my_lats)
print(b.contour_poly.area())Problem description
The above code doesn't fail if the provided lons/lats are 2D (not sure on 3D+), but the class and all functions/utilities underneath it assume 1D arrays. The end results are incor
-
Updated
Oct 15, 2021 - Python
-
Updated
Nov 9, 2021 - Python
🎯 Describe what you'd like
As mentioned in #35, PySpeckit and Specutils are two spectroscopy-related librairies, with post-processing and fitting abilities. Following a recent call in the Astropy community to gather spectroscopy-related efforts, the goal is to build bridges to/from these librairies.
Radis could benef
We have install instructions, but nothing for updating. We should add update info (or at least links) to the install instructions and include a link to the install/update instructions from the ChangeLog page.
I think we should add an extras dependency group so you can pip install wgpu[jupyter] to also pull in jupyter_rfb.
Black makes a poor choice in formatting long arrays, for example in the disasters example:
If there isn't a way of making exceptions for instances like this, the data should be stored externally.
-
Updated
Nov 10, 2021 - Smarty
-
Updated
Aug 30, 2021 - Python
Improve this page
Add a description, image, and links to the closember topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the closember topic, visit your repo's landing page and select "manage topics."



in #13206 there is a test that seem to always be skipped. Once merged we could delete it.
Originally posted by @Carreau in ipython/ipython#13206 (comment)