| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
|
| | | |
| | | |
| | | | |
Fix bug caused by typo and added tests
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
As explained in NEP 32, the financial functions are to be removed
from version 1.20.
They are now replaced with module level `__getattr__` to give a useful
error message for those surprised by the `AttributeError`.
This only works for Python 3.7+, but it is expected that by the 1.20 release
Python 3.6 will not be supported.
|
|/ / /
| | |
| | |
| | | |
* BUG, API: Raise error on complex input to np.i0
|
| | |
| | |
| | | |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
| | |
| | |
| | | |
Follow up to [this commit](https://github.com/numpy/numpy/commit/36f71788620bb17d123669cf03f086fb2b87b3a8), which missed the second pronoun in this sentence.
|
| | |
| | |
| | |
| | |
| | |
| | | |
The docstring now says what to expect if you call
intersect1d(assume_unique=True) but pass in non-unique data.
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Added a benchmark for `trim_zeros()`
* Improve the performance of `np.trim_zeros()`
* Increase the variety of the tests
Fall back to the old `np.trim_zeros()` implementation if an exception is encountered.
Emit a `DeprecationWarning` in such case.
* DEP,REL: Added a deprecation release note
|
| | |
| | |
| | |
| | |
| | | |
* DOC: update val to be scalar or array like optional closes #16901
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|\ \ \
| | | |
| | | | |
TST: Add pypy win32 CI testing.
|
| | | | |
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | | |
* update numpy/lib/arraypad.py with appropriate chain exception
Co-authored-by: Noman Arshad <noman.arshad@northbaysolutions.com>
|
|\ \ \
| | | |
| | | | |
BUG: fix mgrid output for lower precision float inputs
|
| | | | |
|
| | | |
| | | |
| | | | |
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Floats besides float64 were being coerced to integers
and complex step sizes for the index trick classes
would fail for complex64 input. Fixes #16466
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ENH: added edge keyword argument to digitize
added test
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
BadZipFile (#15604)
Previously if you gave an invalid zip file to NpzFile, zipfile_factory would raise BadZipFile and NpzFile.__exit__ would be called, which accessed members which had not yet been set, leading to a confusing second exception like this:
zipfile.BadZipFile: File is not a zip file
Exception ignored in: <function NpzFile.__del__ at 0x9b8ef0>
Traceback (most recent call last):
File "numpy/lib/npyio.py", line 230, in __del__
self.close()
File "numpy/lib/npyio.py", line 221, in close
if self.zip is not None:
AttributeError: 'NpzFile' object has no attribute 'zip'
This change makes __exit__ safe even when __init__ did not complete.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Since #15893, test_large_zip's actual test is run in a child process,
so when this test raises a MemoryError exception, the exception is
lost and the @requires_memory decorator can't catch it to return
an xfail.
This commit uses a boolean variable in shared memory to flag if
the exception was raised, and in that case, re-raise it in the
parent process.
Fixes #16889
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* MAINT: Remove Duplicated Code (function extract rmap)
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Invalide kwarg to imshow causes failures in the plot directive
for docs builds using MPL > v3.3
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Edited the documentation of polyfit.
The scaling factor of the covariance matrix in the description was erroneous, the correct form is chi2/dof.
The code already used this correct scaling, just the description needed to be updated.
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | | |
(#16811)
* DOC: update parameter choices for asarray, asarray_contiguous, asarray_chkfinite converters
Co-authored-by: sun <sun@vosdbt.org>
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| |
| | |
* adding documentation on passing dimensions to
ndindex as a tuple
Co-authored-by: sun <sun@vosdbt.org>
|
|\ \
| | |
| | | |
DOC: Add transition note to all lib/poly functions
|
| | |
| | |
| | |
| | |
| | |
| | | |
Adds a `.. note::` right after the description to all functions/classes
from the numpy.lib.polynomial module notifying the user that the
numpy.polynomial package is preferred.
|
| | |
| | |
| | | |
DOC: fixes to capitalization and header lines
|
| | |
| | |
| | | |
Remove unnecessary try/except from DataSource.
|
| | |
| | |
| | | |
I suggest adding `repeat` to the "See also" section of `unique` (and vice versa) since each is the inverse of the other.
|
| |/
|/|
| |
| |
| |
| | |
this solution is related to the following issue #15986
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| |
| |
| |
| |
| |
| | |
This is deprecated usage, also small code style fixups since
I was looking at it anyway. YMMV, but I think its a bit/nicer
more compact now.
|
|\ \
| | |
| | | |
BUG: Order percentile monotonically
|
| | | |
|
| | |
| | |
| | | |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
| | |
| | |
| | | |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|