closember
Here are 43 public repositories matching this topic...
From code https://github.com/thanos-io/thanos/blob/main/pkg/queryfrontend/roundtrip.go#L123, we are compiling the regex every time to match strings. This can be optimized by only compiling the regex once and checking if the string matches.
matched, err := regexp.MatchString("/api/v1/label/.+/values$", r.URL.Path)
if err == nil && matched {
return labelValuesOp
}Describe your issue.
Currently, applying the ** operator to a sparse array implements the numpy.linalg.matrix_power function. This is not compatible with the np.array implementation of **, which does element-wise power. This should be fixed as part of the migration from sparse "matrices" to sparse "arrays". Additionally, the matrix_power function should then also be included in the
-
Updated
May 14, 2022 - Python
Current problem
We sometimes see code like this:
def foo(*, left=None, right=None):
""" ... """
if (left is None) != (right is None):
raise ValueError('Either both left= and right= need to be provided or none should.')It is very easy to make the mistake of writing the check as:
def foo(*, left=None, right=None):
""" ... """
if left is No-
Updated
Mar 14, 2022
-
Updated
May 10, 2022 - Python
Feature Request
Is your feature request related to a problem? Please describe.
Whenever I report a bug, I need to confirm what satpy version I am using. This is of course important, but it's also an extra step that could be semi-automated.
Describe the solution you'd like
I would like that debug_on() prints the relevant versions. When we report bugs, we anyway call `debu
-
Updated
May 11, 2022 - Python
-
Updated
May 13, 2022 - 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
May 13, 2022 - Python
-
Updated
May 13, 2022 - 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
May 9, 2022 - Python
Turning an insightful comment from @AllanHOlesenBW into a Todo/Request.
in short: I think it would be beneficial if the default wunit and Iunit in a spectrum would correspond to each other so a new user can jump directly to work with the units he is given.
Context :
My main expectation is that the unit describing the wavenum/wavelength/frequency corresponds to th
Currently we track (and visualize) GitHub clones and PyPI downloads here. It would be great to add conda-forge data to this. Steps required (draft list):
- build Python script to access/download and visualize data
- determine the best way to do above (likely via this anaconda package data library)
- create a GitHub action t
Notebook proposal
Title: Reinforcement Learning Model for behavioral data
Why should this notebook be added to pymc-examples?
I wrote this notebook some time ago: https://github.com/ricardoV94/stats/blob/master/modelling/RL_PyMC.ipynb and shared it on the Discourse, where it seems to have been quite popular: https://discourse.pymc.io/t/fitting-a-simple-reinforcement-learning-model-to-be
Organize examples
As our examples grow they becomes a bit harder to navigate. Might be good to think about organizing them better. Maybe a (max 1 layer deep) dir structure, or just more sensible names.
Related, I really like how the Threejs examples can be searched by keyword. Maybe something for our docs? (Technically a separate issue.)
Upstream edge cases.
List list a number of edge cases in upstream libraries,
it would be great is upstream would accept to fix them.
They are usually handled by sphinx but add complexity to papyri.
Numpy:
Links that use `<...>` syntax with no text. I think they can be replaced by just `...`
$ rg '[^`]`<.+>`'
doc/RELEASE_WALKTHROUGH.rst.txt
158:provided at `<https://github.com/Mac
-
Updated
Mar 1, 2022 - 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."
The warnings at
do not mention the issues with reloading modules with enums:
EnumandFlagare compared by identity (is, even if==is used (similarly toNone))