summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | ENH: Use elementwise comparisons with 0 rather than boolean castingBas van Beek2020-08-112-4/+7
| | | |
* | | | BUG: fix typo in polydiv that prevented promotion to poly1d (#17053)jakobjakobson132020-08-172-1/+10
| | | | | | | | | | | | Fix bug caused by typo and added tests
* | | | DEP: lib: Remove the deprecated financial functions. (#17067)Warren Weckesser2020-08-124-1349/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | API, BUG: Raise error on complex input to i0 (#17062)peterbell102020-08-122-15/+17
|/ / / | | | | | | | | | * BUG, API: Raise error on complex input to np.i0
* | | DOC: Use a less ambiguous example for array_split (#17039)raisinghanii2020-08-101-4/+4
| | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | DOC: Fix non-matching pronoun in format.py documentation. (gh-17022)Phoenix Meadowlark2020-08-061-1/+1
| | | | | | | | | Follow up to [this commit](https://github.com/numpy/numpy/commit/36f71788620bb17d123669cf03f086fb2b87b3a8), which missed the second pronoun in this sentence.
* | | DOC: Improve intersect1d docstring (#16420)Dima Kogan2020-08-051-1/+3
| | | | | | | | | | | | | | | | | | 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>
* | | ENH: Speed up trim_zeros (#16911)Bas van Beek2020-08-042-20/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 (#16907)Paul2020-07-311-3/+5
| | | | | | | | | | | | | | | * DOC: update val to be scalar or array like optional closes #16901 Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | | Merge pull request #16974 from mattip/pypy-win32Charles Harris2020-07-292-17/+33
|\ \ \ | | | | | | | | TST: Add pypy win32 CI testing.
| * | | TST: fix tests for windows + PyPymattip2020-07-302-17/+33
| | | |
* | | | DOC: Fixed typo in lib/recfunctions.py (#16973)Jesse Li2020-07-291-2/+2
| | | |
* | | | update numpy/lib/arraypad.py with appropriate chain exception (#16953)Noman Arshad2020-07-281-1/+1
|/ / / | | | | | | | | | | | | * update numpy/lib/arraypad.py with appropriate chain exception Co-authored-by: Noman Arshad <noman.arshad@northbaysolutions.com>
* | | Merge pull request #16815 from cjblocker/mgrid-floatMatti Picus2020-07-252-7/+34
|\ \ \ | | | | | | | | BUG: fix mgrid output for lower precision float inputs
| * | | MAINT: reference issue in comments for added index_tricks testsCameron Blocker2020-07-131-0/+2
| | | |
| * | | TST: update mgrid test from code reviewCameron Blocker2020-07-131-4/+6
| | | | | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | | TST: fixed dtype check error from code reviewCameron Blocker2020-07-121-2/+2
| | | |
| * | | BUG: fix mgrid output for lower precision float inputsCameron Blocker2020-07-122-7/+30
| | | | | | | | | | | | | | | | | | | | | | | | Floats besides float64 were being coerced to integers and complex step sizes for the index trick classes would fail for complex64 input. Fixes #16466
* | | | Revert "Merge pull request #16248 from alexrockhill/edge"mattip2020-07-232-30/+3
| | | |
* | | | change != to ==Alex2020-07-221-1/+1
| | | |
* | | | fixed simplifyAlex2020-07-221-5/+10
| | | |
* | | | simplifiedAlex2020-07-222-14/+14
| | | |
* | | | forgot to include monotonicityAlex2020-07-221-2/+2
| | | |
* | | | changed from large number error to different solutionAlex2020-07-222-9/+11
| | | |
* | | | edge first tryAlex2020-07-222-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | ENH: added edge keyword argument to digitize added test
* | | | MAINT: Avoid exception in NpzFile destructor if constructor raises ↵John Zwinck2020-07-211-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | TST, BUG: Re-raise MemoryError exception in test_large_zip's process (gh-16890)Antonio Larrosa2020-07-181-8/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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) (#16847)Wansoo Kim2020-07-171-16/+13
| | | | | | | | | | | | | | | | | | | | * MAINT: Remove Duplicated Code (function extract rmap) Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | | | BUG,DOC: Fix bad MPL kwarg.Ross Barnowski2020-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | Invalide kwarg to imshow causes failures in the plot directive for docs builds using MPL > v3.3
* | | | Update to polynomial.pydavidedalbosco2020-07-151-5/+6
| | | | | | | | | | | | | | | | | | | | 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.
* | | | DOC: Add explanation of 'K' and 'A' layout options to 'asarray*' functions ↵Neal C2020-07-141-4/+7
| |/ / |/| | | | | | | | | | | | | | | | | (#16811) * DOC: update parameter choices for asarray, asarray_contiguous, asarray_chkfinite converters Co-authored-by: sun <sun@vosdbt.org>
* | | DOC: fix inconsistent parameter name in np.ndindex docstringRohit Sanjay2020-07-131-1/+1
|/ /
* | DOC: add example to corrcoef function (#16805)Laurie Stephey2020-07-111-0/+63
| |
* | DOC: adding docs on passing dimensions as tuple to ndindex (#16806)Neal C2020-07-111-2/+14
| | | | | | | | | | | | * adding documentation on passing dimensions to ndindex as a tuple Co-authored-by: sun <sun@vosdbt.org>
* | Merge pull request #16174 from rossbar/doc/libpoly_docstring_noteMatti Picus2020-07-111-0/+66
|\ \ | | | | | | DOC: Add transition note to all lib/poly functions
| * | DOC: Add transition note to all lib/poly functionsRoss Barnowski2020-05-061-0/+66
| | | | | | | | | | | | | | | | | | 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: Minor RST formatting. (#16792)Matthias Bussonnier2020-07-093-4/+4
| | | | | | | | | DOC: fixes to capitalization and header lines
* | | MAINT: Tidy exception handling in _datasource.py (#16761)Sarthak Vineet Kumar2020-07-081-7/+3
| | | | | | | | | Remove unnecessary try/except from DataSource.
* | | DOC: add example to unique() and make connection to repeat() (#16743)Allen Downey2020-07-071-1/+13
| | | | | | | | | I suggest adding `repeat` to the "See also" section of `unique` (and vice versa) since each is the inverse of the other.
* | | MAINT: Chain exceptions in npyio.py (gh16121)Kerem Hallaç2020-06-301-4/+6
| |/ |/| | | | | | | | | this solution is related to the following issue #15986 Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | MAINT: Fixup quantile tests to not use `np.float`Sebastian Berg2020-06-271-8/+9
| | | | | | | | | | | | 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.
* | Merge pull request #16273 from CloseChoice/BUG-order_percentile-monotonicallySebastian Berg2020-06-272-1/+78
|\ \ | | | | | | BUG: Order percentile monotonically
| * | limit test_quantile_monotonicTobias Pitters2020-06-121-3/+8
| | |
| * | Update numpy/lib/tests/test_function_base.pyTobias Pitters2020-06-121-4/+4
| | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | Update numpy/lib/function_base.pyTobias Pitters2020-06-121-11/+6
| | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | fix _scalar_or_0d in _lerpTobias Pitters2020-06-101-1/+1
| | |
| * | check for `greater-equal` in lerp monotony testTobias Pitters2020-06-101-1/+1
| | |
| * | check for `greater-equal` in lerp monotony testTobias Pitters2020-06-101-1/+1
| | |
| * | make lerp be able to handle 0d casesTobias Pitters2020-06-102-2/+8
| | |
| * | refactor quantile testsTobias Pitters2020-05-271-4/+2
| | |