| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
With thanks to @ricardoV94 for inspiring this
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Abstract collection classes accessed from the collections module
have been deprecated since Python 3.3. They should be
accessed through collections.abc. When run with Python
3.7, the deprecation warning cause multiple tests to
fail.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* TST: skip refcount-requiring tests if sys.refcount is missing
* ENH: io: add refcheck=False to a safe .resize() call
The array is allocated immediately above, and the resize always succeeds
so it is not necessary to check it. Fixes Pypy compatibility.
* TST: remove unused code
* TST: factor skipif(not HAS_REFCOUNT) into a separate decorator
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
[ci-skip]
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | | |
| | | | | | | |
DOC: Fix incorrect formula in gradient docstring.
|
| | | | | | | |
|
| | |_|/ / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
These are now handled generically by the underlying C function
This fixes the period argument for 0d arrays.
Now never returns a pure-python scalar, which matches the behaviour of most of numpy.
Rework of b66a200a4a1e98f1955c8a774e4ebfb4588dab5b
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: fromregex: asbytes called on regexp objects
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
When calling fromregex() with a binary stream and a regular expression
object, asbytes() was called on the regexp object, resulting in an
incorrect regular expression being compiled and used.
|
| | |_|/ / /
| |/| | | |
| | | | | |
| | | | | | |
Fixes #10620
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The optimization was to sort integer subarrays by treating them as
strings of unsigned bytes. That worked fine for finding the unique
subarrays, but the sort order of the results could be unexpected.
Closes #10495.
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is potentially a breaking change for python 3, because the Mapping protocol changed between python 2 and python 3 - `items()` and `keys()` now return views, not lists.
In practice, any user running `2to3` should have found this fixed itself automatically.
Also fixes dir(np.lib.npyio.BagObj(dict(a=1))) on python 3.
Fixes gh-1723
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
BUG: Fix crashes when using float32 values in uniform histograms
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #8123, closes #9189, fixes #10319
This is a workaround to #10322, not a fix for it.
Adds tests for cases where bounds are more precise than the data, which led to inconsistencies in the optimized path.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: Resize bytes_ columns in genfromtxt
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes gh-10394, due to regression in gh-10054
|
| | | | | | |
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
MAINT: Use AxisError in swapaxes, unique, and diagonal
|
| | | | | | | |
|
|/ / / / / / |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Largely taken from gh-9531
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This previously failed with:
TypeError: Cannot cast ufunc subtract output from dtype('complex128') to dtype('float64') with casting rule 'same_kind'
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* DOC: See #10098 and minor punctuation cleanup
* DOC: Correcting per PR comments
|
| |_|/ / /
|/| | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: arrays not being flattened in `union1d`
|
| | | | | |
| | | | | |
| | | | | | |
[ci skip]
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
MAINT: pytest cleanups
|
| | | | | | |
|
| |_|/ / /
|/| | | |
| | | | | |
Found via `codespell`
|
|\ \ \ \ \
| | | | | |
| | | | | | |
ENH: Set up proposed NEP process
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
MAINT: Avoid repeated validation of percentiles in nanpercentile
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Previously, this would check the percentiles were 0 <= q <= 100 on every single slice of non-reduction axes.
This also pulls the division by 100 to the top level, which makes things clearer, and also reduces the size of the stack trace
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
ENH: Allow ptp to take an axis tuple and keepdims
|
| | |_|/ / / /
| |/| | | | | |
|
|/ / / / / /
| | | | | |
| | | | | | |
Found via `codespell`
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Also avoids `r_`, and construction of arrays from lists
|