Skip to content

Bump numpy from 1.21.6 to 1.23.0

WKDV Bot requested to merge dependabot/pip/numpy-1.23.0 into develop

Bumps numpy from 1.21.6 to 1.23.0.

Release notes

Sourced from numpy's releases.

v1.23.0

NumPy 1.23.0 Release Notes

The NumPy 1.23.0 release continues the ongoing work to improve the handling and promotion of dtypes, increase the execution speed, clarify the documentation, and expire old deprecations. The highlights are:

  • Implementation of loadtxt in C, greatly improving its performance.
  • Exposing DLPack at the Python level for easy data exchange.
  • Changes to the promotion and comparisons of structured dtypes.
  • Improvements to f2py.

See below for the details,

New functions

  • A masked array specialization of ndenumerate is now available as numpy.ma.ndenumerate. It provides an alternative to numpy.ndenumerate and skips masked values by default.

    (gh-20020)

  • numpy.from_dlpack has been added to allow easy exchange of data using the DLPack protocol. It accepts Python objects that implement the __dlpack__ and __dlpack_device__ methods and returns a ndarray object which is generally the view of the data of the input object.

    (gh-21145)

Deprecations

  • Setting __array_finalize__ to None is deprecated. It must now be a method and may wish to call super().__array_finalize__(obj) after checking for None or if the NumPy version is sufficiently new.

    (gh-20766)

  • Using axis=32 (axis=np.MAXDIMS) in many cases had the same meaning as axis=None. This is deprecated and axis=None must be used instead.

    (gh-20920)

  • The hook function PyDataMem_SetEventHook has been deprecated and the demonstration of its use in tool/allocation_tracking has been removed. The ability to track allocations is now built-in to python via tracemalloc.

... (truncated)

Commits
  • 54c52f1 Merge pull request #21825 from charris/prepare-for-1.23.0-2
  • 3676325 REL: Prepare for the NumPy 1.23.0 release (2)
  • 5773033 Merge pull request #21824 from charris/test-anaconda-uploading
  • 3e6ea37 MAINT: Try fixing broken Anaconda uploads.
  • e12270a Merge pull request #21811 from charris/prepare-for-1.23.0
  • 6da3cd7 REL: Prepare for the NumPy 1.23.0 release
  • e6a2125 Merge pull request #21810 from charris/backport-21794
  • e54b11b Merge pull request #21809 from charris/backport-21771
  • 552bad6 BUG: lib: A loadtxt error message had two values reversed.
  • 0f2c736 MAINT: Add a check of the return value of PyMem_Calloc().
  • Additional commits viewable in compare view

Merge request reports