Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "MRG, ENH: added edge keyword argument to digitize"revert-16248-edge | Eric Wieser | 2020-07-23 | 2 | -30/+3 |
| | |||||
* | change != to == | Alex | 2020-07-22 | 1 | -1/+1 |
| | |||||
* | fixed simplify | Alex | 2020-07-22 | 1 | -5/+10 |
| | |||||
* | simplified | Alex | 2020-07-22 | 2 | -14/+14 |
| | |||||
* | forgot to include monotonicity | Alex | 2020-07-22 | 1 | -2/+2 |
| | |||||
* | changed from large number error to different solution | Alex | 2020-07-22 | 2 | -9/+11 |
| | |||||
* | edge first try | Alex | 2020-07-22 | 2 | -2/+22 |
| | | | | | | ENH: added edge keyword argument to digitize added test | ||||
* | MAINT: Avoid exception in NpzFile destructor if constructor raises ↵ | John Zwinck | 2020-07-21 | 1 | -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 Larrosa | 2020-07-18 | 1 | -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 Kim | 2020-07-17 | 1 | -16/+13 |
| | | | | | * MAINT: Remove Duplicated Code (function extract rmap) Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> | ||||
* | BUG,DOC: Fix bad MPL kwarg. | Ross Barnowski | 2020-07-16 | 1 | -1/+1 |
| | | | | | Invalide kwarg to imshow causes failures in the plot directive for docs builds using MPL > v3.3 | ||||
* | Update to polynomial.py | davidedalbosco | 2020-07-15 | 1 | -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 C | 2020-07-14 | 1 | -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 docstring | Rohit Sanjay | 2020-07-13 | 1 | -1/+1 |
| | |||||
* | DOC: add example to corrcoef function (#16805) | Laurie Stephey | 2020-07-11 | 1 | -0/+63 |
| | |||||
* | DOC: adding docs on passing dimensions as tuple to ndindex (#16806) | Neal C | 2020-07-11 | 1 | -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_note | Matti Picus | 2020-07-11 | 1 | -0/+66 |
|\ | | | | | DOC: Add transition note to all lib/poly functions | ||||
| * | DOC: Add transition note to all lib/poly functions | Ross Barnowski | 2020-05-06 | 1 | -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 Bussonnier | 2020-07-09 | 3 | -4/+4 |
| | | | | | | DOC: fixes to capitalization and header lines | ||||
* | | MAINT: Tidy exception handling in _datasource.py (#16761) | Sarthak Vineet Kumar | 2020-07-08 | 1 | -7/+3 |
| | | | | | | Remove unnecessary try/except from DataSource. | ||||
* | | DOC: add example to unique() and make connection to repeat() (#16743) | Allen Downey | 2020-07-07 | 1 | -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-30 | 1 | -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 Berg | 2020-06-27 | 1 | -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-monotonically | Sebastian Berg | 2020-06-27 | 2 | -1/+78 |
|\ \ | | | | | | | BUG: Order percentile monotonically | ||||
| * | | limit test_quantile_monotonic | Tobias Pitters | 2020-06-12 | 1 | -3/+8 |
| | | | |||||
| * | | Update numpy/lib/tests/test_function_base.py | Tobias Pitters | 2020-06-12 | 1 | -4/+4 |
| | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com> | ||||
| * | | Update numpy/lib/function_base.py | Tobias Pitters | 2020-06-12 | 1 | -11/+6 |
| | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com> | ||||
| * | | fix _scalar_or_0d in _lerp | Tobias Pitters | 2020-06-10 | 1 | -1/+1 |
| | | | |||||
| * | | check for `greater-equal` in lerp monotony test | Tobias Pitters | 2020-06-10 | 1 | -1/+1 |
| | | | |||||
| * | | check for `greater-equal` in lerp monotony test | Tobias Pitters | 2020-06-10 | 1 | -1/+1 |
| | | | |||||
| * | | make lerp be able to handle 0d cases | Tobias Pitters | 2020-06-10 | 2 | -2/+8 |
| | | | |||||
| * | | refactor quantile tests | Tobias Pitters | 2020-05-27 | 1 | -4/+2 |
| | | | |||||
| * | | limit range of lerp inputs | Tobias Pitters | 2020-05-27 | 1 | -10/+10 |
| | | | |||||
| * | | Update numpy/lib/tests/test_function_base.py | Tobias Pitters | 2020-05-27 | 1 | -2/+8 |
| | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com> | ||||
| * | | remove debug statements | Tobias Pitters | 2020-05-27 | 1 | -1/+0 |
| | | | |||||
| * | | fix lerp function and corresponding tests | Tobias Pitters | 2020-05-27 | 2 | -7/+19 |
| | | | |||||
| * | | Update numpy/lib/tests/test_function_base.py | Tobias Pitters | 2020-05-27 | 1 | -0/+1 |
| | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com> | ||||
| * | | use symmetric lerp function | Tobias Pitters | 2020-05-27 | 2 | -9/+5 |
| | | | |||||
| * | | fix symmetry test | Tobias Pitters | 2020-05-27 | 2 | -7/+7 |
| | | | |||||
| * | | remove pdb; add hypothesis tests for monotony, boundedness and symmetry of lerp | Tobias Pitters | 2020-05-27 | 2 | -2/+39 |
| | | | |||||
| * | | add hypothesis test, fix bug of non-monotonic ordering of quantile function | CloseChoice | 2020-05-27 | 2 | -2/+17 |
| | | | |||||
| * | | BUG: np.quantile ordering not monotonic | Tobias Pitters | 2020-05-27 | 1 | -0/+7 |
| | | | |||||
* | | | Merge pull request #16690 from ↵ | Matti Picus | 2020-06-26 | 1 | -8/+20 |
|\ \ \ | | | | | | | | | | | | | | | | | Iamsoto/better_docstring_for_numpy_lib_format_descr_to_dtype DOC: fixed docstring for descr_to_dtype | ||||
| * | | | DOC: fixed docstring for descr_to_dtype | iamsoto | 2020-06-25 | 1 | -8/+20 |
| | | | | | | | | | | | | | | | | DOC: fixed docstring for descr_to_dtype | ||||
* | | | | DOC: rm matrix from triu docstring. | Ross Barnowski | 2020-06-25 | 1 | -1/+1 |
|/ / / | | | | | | | | | | | | | Replace "matrix" with "array" to avoid confusion re: np.matrix. Consistent with other np.tri\* functions. | ||||
* | | | Fix broken link in open_memmap See Also | Ross Barnowski | 2020-06-24 | 1 | -1/+1 |
| | | | |||||
* | | | MAINT: lib: A few PEP-8 fixes. | Warren Weckesser | 2020-06-18 | 1 | -3/+6 |
| | | | |||||
* | | | MAINT: lib: In loadtxt, move some code out of a try/finally block. | Warren Weckesser | 2020-06-18 | 1 | -5/+8 |
| | | | | | | | | | | | | | | | | | | In loadtxt, there is a try/finally block that ensures that the file is closed if it was opened in the function. Some code that did not need to be in that block was moved up, outside the try/finally block. | ||||
* | | | MAINT: lib: In loadtxt, validate ndmin argument earlier. | Warren Weckesser | 2020-06-18 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | | | Validation of `ndmin` is moved to the beginning of the function, so we don't read the entire file only to raise an exception at the end because of a bad argument. | ||||
* | | | MAINT: lib: Move some nested function definitions in loadtxt. | Warren Weckesser | 2020-06-18 | 1 | -61/+70 |
| | | | | | | | | | | | | | | | This change moves the nested function definitions in loadtxt to the top of the function body. |