summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* BUILD: revert function() -> #define for 3 npymath functionsmattip2022-11-273-4/+38
|
* Merge pull request #22674 from rgommers/npy-inline-cleanupRalf Gommers2022-11-2570-378/+353
|\ | | | | | | | | MAINT: replace `NPY_INLINE` with `inline` [ci skip]
| * MAINT: replace `NPY_INLINE` with `inline`Ralf Gommers2022-11-2570-378/+353
| | | | | | | | Closes gh-22100
* | Merge pull request #22666 from mattip/drop-sixSebastian Berg2022-11-251-2/+0
|\ \ | | | | | | MAINT: remove 'six' dependency from pyinstaller
| * | remove 'six' dependency from pyinstallermattip2022-11-241-2/+0
| | |
* | | Merge pull request #22671 from mattip/update-python3.10Sebastian Berg2022-11-251-2/+2
|\ \ \ | | | | | | | | MAINT: pin ubuntu and python for emscripten
| * | | MAINT: pin ubuntu and python for emscriptenmattip2022-11-251-2/+2
| |/ /
* | | Merge pull request #22668 from WarrenWeckesser/use-keepdimsMatti Picus2022-11-251-11/+13
|\ \ \ | |/ / |/| | DOC: lib: Use keepdims in a couple docstrings.
| * | MAINT: lib: A bit of flake8-driven clean up in shape_base.pywarren2022-11-241-4/+4
| | |
| * | DOC: lib: Use keepdims in a couple docstrings.warren2022-11-241-7/+9
|/ /
* | DOC: Update mode parameter description to account for shape #22643 (#22655)mkiffer2022-11-231-1/+2
|/ | | | | | The `shape` parameter must be specified when opened in appending mode. Docstring and exception message wording are updated to reflect this. Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* Merge pull request #22649 from charris/remove-python3.8-aarch64-buildsSebastian Berg2022-11-231-15/+1
|\ | | | | MAINT: Remove the aarch64 python 3.8 wheel builds
| * MAINT: Remove the aarch64 python 3.8 wheel buildsCharles Harris2022-11-221-15/+1
| | | | | | | | | | This is a quick fix for the failing tests on merge. There will be a followup PR updating other ci infrastucture to Python 3.9
* | Merge pull request #22653 from ngoldbaum/ensure-canonical-checkSebastian Berg2022-11-231-0/+6
|\ \ | | | | | | MAINT: check user-defined dtype has an ensure_canonical implementation
| * | [MAINT] check user-defined dtype has an ensure_canonical implementationNathan Goldbaum2022-11-221-0/+6
| | |
* | | Merge pull request #22646 from hawkinsp/odrSebastian Berg2022-11-228-52/+52
|\ \ \ | |/ / |/| | MAINT: Rename symbols in textreading/ that may clash when statically linked
| * | Rename symbols in textreading/ that may clash when statically linked.Peter Hawkins2022-11-228-52/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | While it is not the standard way NumPy is built, some users build and link NumPy statically together with other modules. In this case generic names like `tokenize` or `to_float` can clash with similar symbols from other modules. We can defend against this either by using a C++ namespace or by prefixing symbols likely to clash with a prefix like npy_.
* | | Merge pull request #22638 from seberg/machar-deprCharles Harris2022-11-226-32/+12
|\ \ \ | | | | | | | | DEP: Finalize MachAr and machar deprecations
| * | | DEP: Finalize MachAr and machar deprecationsSebastian Berg2022-11-226-32/+12
| | | | | | | | | | | | | | | | | | | | | | | | This removes the attributes on finfo and the "public" module. It also deprecates `np.core.MachAr`. We should be able to get away with just deleting it, but there seems little reason to not just deprecate it for now.
* | | | Merge pull request #22647 from charris/prepare-main-for-1.25.0-developmentCharles Harris2022-11-2242-364/+49
|\ \ \ \ | |_|_|/ |/| | | MAINT: Prepare main for NumPy 1.25.0 development
| * | | REL: Prepare main for NumPy 1.25.0 developmentCharles Harris2022-11-2242-364/+49
|/ / /
* | | REL: Begin NumPy 1.25.0 developmentv1.25.0.dev0Charles Harris2022-11-220-0/+0
| |/ |/|
* | ENH: raise TypeError when arange() is called with string dtype (#22087)Daniel da Silva2022-11-214-61/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH: raise TypeError when arange() is called with string dtype * Add release note for dtype=str change to arange() * DOC: Minor wording/formatting touchups to release note. * Update numpy/core/tests/test_multiarray.py Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> * Move check to PyArray_ArangeObj * remove old code * BUG,MAINT: Clean out arange string error and other paths * BUGS: Fixup and cleanup arange code a bit * DOC: Update release note to new message * BUG: Fix refcounting and simplify arange * MAINT: Use SETREF to make arange dtype discovery more compact * MAINT: Update numpy/core/src/multiarray/ctors.c Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> Co-authored-by: Sebastian Berg <sebastianb@nvidia.com> Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
* | Merge pull request #22316 from seberg/void-strctured-newSebastian Berg2022-11-217-20/+158
|\ \ | | | | | | ENH: Allow creating structured void scalars by passing dtype
| * | DOC: Update np.void docs based on Matti's commentsSebastian Berg2022-11-211-6/+6
| | | | | | | | | | | | Co-authored-by: Matti Picus <matti.picus@gmail.com>
| * | ENH: Allow creating structured void scalars by passing dtypeSebastian Berg2022-09-217-20/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an optional `dtype=` kwarg to `np.void`. If given (and not None), this kwarg effectively turns it into: res = np.array(data, dtype=dtype)[()] Thanks for Marten's review and Bas' help with the typing. Reviewed-by: Marten van Kerkwijk <mhvk@astro.utoronto.ca> Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
* | | Merge pull request #22436 from cmarmo/doc-masked-equalSebastian Berg2022-11-211-17/+11
|\ \ \ | | | | | | | | DOC: Clarify docstring of `masked_equal` and `masked_values`
| * | | Update numpy/ma/core.pySebastian Berg2022-11-211-3/+1
| | | |
| * | | Address reviewer comment.Chiara Marmo2022-10-171-2/+4
| | | |
| * | | Clarify docstring of masked_valuesChiara Marmo2022-10-131-14/+8
| | | |
* | | | Merge pull request #22639 from seberg/undoc-sigintMatti Picus2022-11-211-11/+0
|\ \ \ \ | |_|_|/ |/| | | DOC: Remove traces of interrupt handling utilities
| * | | DOC: Remove traces of interrupt handling utilitiesSebastian Berg2022-11-211-11/+0
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | We do not use these in NumPy anymore, and at this point the whole `npy_interrupt.h` header only exists in case someone is using it out there. We may wish to just remove it at some point, vendoring the header is simple enough after all (and no known downstream usage exists). See also gh-7545, gh-12541
* | | Merge pull request #22607 from seberg/scalar-aliasesRalf Gommers2022-11-2111-116/+76
|\ \ \ | | | | | | | | DEP: Next step in scalar type alias deprecations/futurewarnings
| * | | DOC: Adjust comments on deprecated/future scalar alias based on reviewSebastian Berg2022-11-211-3/+5
| | | |
| * | | BUG: Fixup warning giving and remove MachAr from docsSebastian Berg2022-11-173-4/+4
| | | |
| * | | DOC: Document scalar type alias deprecation changes and futurewarningSebastian Berg2022-11-172-0/+9
| | | |
| * | | TYP: Remove newly deprecated scalar type aliasesSebastian Berg2022-11-173-25/+0
| | | |
| * | | DEP: Next step in scalar type alias deprecations/futurewarningsSebastian Berg2022-11-175-90/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Finalizes the scalar type alias deprecations making them an error. However, at the same time adds a `FutureWarning` that new aliases will be introduced in the future. (They would eventually be preferred over the `str_`, etc. version.) It may make sense, that this FutureWarning is already propelled soon since it interacts with things such as changing the representation of strings to `np.str_("")` if the preferred alias becomes `np.str`. It also introduces a new deprecation to remove the 0 sized bit-aliases and the bitsize `bool8` alias. (Unfortunately, these are here still allowed as part of the `np.sctypeDict`).
* | | | Merge pull request #22636 from charris/increase-travis-timeoutCharles Harris2022-11-201-2/+2
|\ \ \ \ | | | | | | | | | | CI: Increase travis timeout to 30 minutes (2).
| * | | | CI: Increase travis timeout to 20 minutes (2).Charles Harris2022-11-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | This is an attempted fix for the Python 3.8 aarch64 builds that are timing out when merged to master.
* | | | | Merge pull request #22634 from charris/increase-travis-timeoutCharles Harris2022-11-201-2/+2
|\ \ \ \ \ | |/ / / / | | | | | CI: Increase travis timeout to 20 minutes.
| * | | | CI: Increase travis timeout to 20 minutes.Charles Harris2022-11-201-2/+2
|/ / / / | | | | | | | | | | | | | | | | This is an attempted fix for the Python 3.8 aarch64 builds that are timing out when merged to master.
* | | | Merge pull request #22629 from charris/post-1.23.5-release-updateMatti Picus2022-11-203-0/+70
|\ \ \ \ | | | | | | | | | | MAINT: Update main after 1.23.5 release.
| * | | | MAINT: Update main after 1.23.5 release.Charles Harris2022-11-193-0/+70
| | | | |
* | | | | Merge pull request #22630 from charris/fix-aarch64-python3_9-buildMatti Picus2022-11-201-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | BLD: Use cibuildwheel 2.9.0 for Python 3.8 aarch64 builds
| * | | | BLD: Use cibuildwheel 2.9.0 for Python 3.8 aarch65 buildsCharles Harris2022-11-191-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | The Python 3.8 aarch65 builds have been failing in main for some time, but work on maintenance/1.23.x. This PR uses the version of cibuildwheel used in 1.23.x to see if that fixes the problem.
* | | | Merge pull request #22628 from stefmolin/patch-1Charles Harris2022-11-191-0/+26
|\ \ \ \ | | | | | | | | | | DOC: Add example for np.ma.power
| * | | | DOC: Add example for np.ma.power as part of #22269Stefanie Molin2022-11-191-0/+26
|/ / / /
* | | | Merge pull request #22612 from mattip/macos-11Charles Harris2022-11-193-19/+21
|\ \ \ \ | | | | | | | | | | BLD: update wheel builds on macos to macos-12 image
| * | | | debugging the CI workflow with the action-tmate did not help: it does not ↵mattip2022-11-191-7/+0
| | | | | | | | | | | | | | | | | | | | preserve state