summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * DOC: Update parameter descriptions for np.pad (#22519)Miki Watanabe2022-11-151-17/+18
| | | | | | | | | | | | | | | | Some parameters like pad_width or stat_length claimed to expect tuples-of-tuples as input, but in practice they also work with single tuples. The parameter descriptions of the relevant parameters are updated in the docstring to reflect this implicit tuple wrapping behavior. Co-authored-by: 渡邉 美希 <miki.watanabe@watanabenoMacBook-Pro.local>
| * Merge pull request #21895 from hoodmane/emscripten-ciRalf Gommers2022-11-153-3/+9
| |\ | | | | | | ENH, CI: Add Emscripten to CI
| | * TST: Skip tests that are not currently supported in wasmHood Chatham2022-11-113-3/+9
| | |
| * | TYP,DEP: Remove `msort` annotationsBvB932022-11-141-6/+2
| | | | | | | | | | | | Xref https://github.com/numpy/numpy/pull/22456
| * | TYP,ENH: Add annotations for `np.show_runtime`BvB932022-11-142-0/+3
| |/ | | | | | | Xref https://github.com/numpy/numpy/pull/21468
* | DOC: Fix example spacing and move to end of docstring.Ross Barnowski2023-01-251-11/+11
| |
* | Add examples for diag_indices_from()Richie Cotton2022-11-081-0/+26
|/
* Merge pull request #22375 from melissawm/doc-arangeMatti Picus2022-11-082-5/+18
|\ | | | | DOC: How to partition domains
| * DOC: Improve how-to-partition contents.melissawm2022-10-112-0/+3
| | | | | | | | Also add links to this document from the functions' docstrings.
| * DOC: How to partition domainsmelissawm2022-10-032-5/+15
| |
* | STY: Make linter happySebastian Berg2022-10-271-0/+1
| | | | | | | | Not new things, but in touched lines...
* | TST,MAINT: Replace most `setup` with `setup_method` (also teardown)Sebastian Berg2022-10-275-24/+24
| | | | | | | | | | | | | | | | In some cases, the replacement is clearly not what is intended, in those (where setup was called explicitly), I mostly renamed `setup` to `_setup`. The `test_ccompile_opt` is a bit confusing, so left it right now (this will probably fail)
* | MAINT: remove u-prefix for former Unicode strings (#22479)Mike Taves2022-10-263-17/+17
| |
* | DOC: Update numpy/lib/function_base.py Ross Barnowski2022-10-201-0/+1
| | | | | | | | | | Add date to deprecation in comment Co-authored-by: Matti Picus <matti.picus@gmail.com>
* | DEP: Add deprecation warning and check warning in test.Ross Barnowski2022-10-192-5/+11
| |
* | DOC: Add deprecated directive to docstring.Ross Barnowski2022-10-191-0/+4
| |
* | ENH: unstructured_to_structured converts dtype argument (#22442)LeonaTaric2022-10-192-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | Before: >>> field = unstructured_to_structured(np.zeros((20, 2)), dtype=[('x', float), ('y', float)]) # failed >>> field = unstructured_to_structured(np.zeros((20, 2)), dtype=np.dtype([('x', float), ('y', float)])) # success After: >>> field = unstructured_to_structured(np.zeros((20, 2)), dtype=[('x', float), ('y', float)]) # success >>> field = unstructured_to_structured(np.zeros((20, 2)), dtype=np.dtype([('x', float), ('y', float)])) # success Closes gh-22428
* | MAINT: Fix typos found by codespellDimitri Papadopoulos2022-10-071-1/+1
| |
* | Merge pull request #22393 from seberg/npy_headerMatti Picus2022-10-074-18/+126
|\ \ | | | | | | MAINT: Ensure graceful handling of large header sizes
| * | MAINT: Ensure graceful handling of large header sizesSebastian Berg2022-10-064-18/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures graceful handling of large header files. Unfortunately, it may be a bit inconvenient for users, thus the new kwarg and the work-around of also accepting allow-pickle. See also the documation here: https://docs.python.org/3.10/library/ast.html#ast.literal_eval
* | | Merge pull request #20321 from xor2k/mainSebastian Berg2022-10-052-6/+32
|\ \ \ | | | | | | | | ENH: allow NumPy created .npy files to be appended in-place
| * | | add spare space for growth for .npy filesMichael Siebert2022-09-262-6/+32
| | | |
* | | | DOC: Use versionchanged and add in note about newline chars.Ross Barnowski2022-10-041-3/+7
| | | |
* | | | DOC: Update delimiter param description.Ross Barnowski2022-10-031-1/+2
| |_|/ |/| | | | | | | | | | | Explicitly state that only single-character delimiters are supported.
* | | REV: Losen `lookfor`'s import try/except again (#22356)Sebastian Berg2022-09-301-2/+6
| |/ |/| | | | | | | | | | | | | | | | | | | Some BaseExceptions (at least the Skipped that pytest uses) need to be caught as well. It seems easiest to be practical and keep ignoring almost all exception in this particular code path. Effectively reverts parts of gh-19393 Closes gh-22345 Co-authored-by: Sebastian Berg <sebastianb@nvidia.com>
* | Merge pull request #22343 from gdementen/patch-2Charles Harris2022-09-281-2/+2
|\ \ | | | | | | DOC: fixed two more typos in docstrings
| * | DOC: fixed two more typos in docstringsGaëtan de Menten2022-09-281-2/+2
| |/ | | | | nanpercentile and nanquantile had the same typo I just fixed in percentile
* | DOC: Improve `converters` parameter description for loadtxt (#22254)Ross Barnowski2022-09-281-6/+4
| | | | | | | | | | | | | | | | | | * DOC: Make converters param description more concise. A wording proposal to hopefully make the description of the converters parameter of loadtxt more clear, and direct readers to the example section. * DOC: Combine both suggestions for param descr.
* | DOC: fixed minor typo in percentile docstringGaëtan de Menten2022-09-281-1/+1
|/
* Merge pull request #22280 from xilin22/histogramdd-doc-updateSebastian Berg2022-09-261-1/+1
|\ | | | | DOC: updated the description for array-like type in histogramdd (#19823)
| * DOC: updated the description for array-like type in histogramddXinRu Lin2022-09-161-1/+1
| |
* | Merge pull request #22319 from sjtechdev/21257/add_kron_functional_testsCharles Harris2022-09-221-0/+29
|\ \ | | | | | | TST: add functional tests for kron
| * | TST: add functional tests for kronShreyas Joshi2022-09-211-0/+29
| |/
* | MAINT: use `functools.wraps` in `np.deprecate`Josh Wilson2022-09-211-16/+5
| |
* | MAINT: update function's `__module__` attribute in `deprecate`Josh Wilson2022-09-212-6/+9
| | | | | | | | | | | | Currently the location of the function definition is always reported to be `numpy.lib.utils`; this changes it to be the location of the actual definition when possible.
* | STY: minor formatting touchups.Ross Barnowski2022-09-161-3/+2
| |
* | DOC: Add examples to msort in lib/function_base.pyShreya2022-09-161-0/+8
|/
* TST,BUG: Us context from spawn to fork in (#22204)Jyn Spring 琴春2022-09-071-2/+7
| | | | | | | | | | | | | | | Since Python 3.8, the default start method for multiprocessing has been changed from fork to spawn on macOS The default start method is still fork on other Unix platforms[1], causing inconsistency on memory sharing model It will cause a memory-sharing problem for the test test_large_zip on macOS as the memory sharing model between spawn and fork is different The fix Change the start method for this test back to fork under this testcase context In this test case context, the bug that caused default start method changed to spawn for macOS will not be triggered It is context limited, so this change will not affect default start method other than test_large_zip All platforms have the same memory sharing model now After the change, test_large_zip is passed on macOS https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods Closes gh-22203
* Merge pull request #22009 from eendebakpt/fix/averageSebastian Berg2022-09-032-4/+10
|\ | | | | BUG: fix np.average for Fraction elements
| * BUG: fix np.average for Fraction elementsPieter Eendebak2022-08-102-4/+10
| |
* | DOC: Fixed links for np.show_runtime (#21468)Ganesh Kathiresan2022-08-211-3/+3
| |
* | ENH: Added `show_runtime`ganesh-k132022-08-191-1/+78
| | | | | | | | | | | | | | | | 1. Information is derived with the help of `threadpoolctl` library. 2. In case `threadpoolctl` is not installed, a message is displayed with help on how to install it. 3. SIMD related information is derived from `__cpu_features__`, `__cpu_baseline__` and `__cpu_dispatch__`
* | DOC: Fix documentation for percentile and quantilemelissawm2022-08-121-22/+35
|/ | | | Co-authored-by: deego <deego3@gmail.com>
* TST: fix test_linear_interpolation_formula_symmetricPal Barta2022-08-101-1/+1
| | | | | | | | | The lerp test compared the output of the original and the symmetric functions by using basic assertion. Double precision errors could accumulate in a way that the 2 outputs mismatch by epsilon. For more information on the precision issue, see #22073 Fix: use assert_allclose instead for float comparison.
* ENH: allow importlib.LazyLoader to work with numpy and add test of this (#22045)Dan Schult2022-07-271-0/+18
|
* Revert "ENH: Adding __array_ufunc__ capability to MaskedArrays."mattip2022-07-201-1/+1
| | | | This reverts commit 8cd6f4ca00b6e0da3833fc267d50067b2ddbc069.
* DOC: Add versionchanged for converter callable behavior.Ross Barnowski2022-07-191-0/+5
|
* MAINT: rm old warningTyler Reddy2022-07-161-4/+1
| | | | | | * if you believe the comments that this warning suppression should be safe to remove after `1.16`, then it should be safe to remove now?
* ENH: Adding __array_ufunc__ capability to MaskedArrays.Greg Lucas2022-07-131-1/+1
| | | | | | This enables any ufunc numpy operations that are called on a MaskedArray to use the masked version of that function automatically without needing to resort to np.ma.func() calls.
* MAINT, TYP: Fix `np.angle` dtype-overloadsBas van Beek2022-07-121-3/+5
|