The NumPy 1.24.0 release continues the ongoing work to improve the
handling and promotion of dtypes, increase the execution speed, and
clarify the documentation. There are also a large number of new and
expired deprecations due to changes in promotion and cleanups. This
might be called a deprecation release. Highlights are
Many new deprecations, check them out.
Many expired deprecations,
New F2PY features and fixes.
New "dtype" and "casting" keywords for stacking functions.
See below for the details,
This release supports Python versions 3.8-3.11.
Deprecations
Deprecate fastCopyAndTranspose and PyArray_CopyAndTranspose
The numpy.fastCopyAndTranspose function has been deprecated. Use the
corresponding copy and transpose methods directly:
arr.T.copy()
The underlying C function PyArray_CopyAndTranspose has also been
deprecated from the NumPy C-API.
Attempting a conversion from a Python integer to a NumPy value will now
always check whether the result can be represented by NumPy. This means
the following examples will fail in the future and give a
DeprecationWarning now:
np.uint8(-1)
np.array([3000], dtype=np.int8)
Many of these did succeed before. Such code was mainly useful for
unsigned integers with negative values such as np.uint8(-1) giving
np.iinfo(np.uint8).max.
Note that conversion between NumPy integers is unaffected, so that
np.array(-1).astype(np.uint8) continues to work and use C integer
overflow logic. For negative values, it will also work to view the
array: np.array(-1, dtype=np.int8).view(np.uint8). In some cases,
... (truncated)
Commits
8cec820 Merge pull request #22813 from charris/prepare-1.24.0-release
8d33e68 REL: Prepare for the NumPy 1.24.0 release.
5ac09da Merge pull request #22815 from charris/backport-22814
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot merge will merge this PR after your CI passes on it
@dependabot squash and merge will squash and merge this PR after your CI passes on it
@dependabot cancel merge will cancel a previously requested merge and block automerging
@dependabot reopen will reopen this PR if it is closed
@dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps [numpy](https://github.com/numpy/numpy) from 1.22.2 to 1.24.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/numpy/numpy/releases">numpy's releases</a>.</em></p>
<blockquote>
<h2>v1.24.0</h2>
<h1>NumPy 1.24 Release Notes</h1>
<p>The NumPy 1.24.0 release continues the ongoing work to improve the
handling and promotion of dtypes, increase the execution speed, and
clarify the documentation. There are also a large number of new and
expired deprecations due to changes in promotion and cleanups. This
might be called a deprecation release. Highlights are</p>
<ul>
<li>Many new deprecations, check them out.</li>
<li>Many expired deprecations,</li>
<li>New F2PY features and fixes.</li>
<li>New "dtype" and "casting" keywords for stacking functions.</li>
</ul>
<p>See below for the details,</p>
<p>This release supports Python versions 3.8-3.11.</p>
<h2>Deprecations</h2>
<h3>Deprecate fastCopyAndTranspose and PyArray_CopyAndTranspose</h3>
<p>The <code>numpy.fastCopyAndTranspose</code> function has been deprecated. Use the
corresponding copy and transpose methods directly:</p>
<pre><code>arr.T.copy()
</code></pre>
<p>The underlying C function <code>PyArray_CopyAndTranspose</code> has also been
deprecated from the NumPy C-API.</p>
<p>(<a href="https://github-redirect.dependabot.com/numpy/numpy/pull/22313">gh-22313</a>)</p>
<h3>Conversion of out-of-bound Python integers</h3>
<p>Attempting a conversion from a Python integer to a NumPy value will now
always check whether the result can be represented by NumPy. This means
the following examples will fail in the future and give a
<code>DeprecationWarning</code> now:</p>
<pre><code>np.uint8(-1)
np.array([3000], dtype=np.int8)
</code></pre>
<p>Many of these did succeed before. Such code was mainly useful for
unsigned integers with negative values such as <code>np.uint8(-1)</code> giving
<code>np.iinfo(np.uint8).max</code>.</p>
<p>Note that conversion between NumPy integers is unaffected, so that
<code>np.array(-1).astype(np.uint8)</code> continues to work and use C integer
overflow logic. For negative values, it will also work to view the
array: <code>np.array(-1, dtype=np.int8).view(np.uint8)</code>. In some cases,</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/numpy/numpy/commit/8cec82012694571156e8d7696307c848a7603b4e"><code>8cec820</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/numpy/numpy/issues/22813">#22813</a> from charris/prepare-1.24.0-release</li>
<li><a href="https://github.com/numpy/numpy/commit/8d33e689cfa2a6153d716b76f6c3f8d6ae06b4b2"><code>8d33e68</code></a> REL: Prepare for the NumPy 1.24.0 release.</li>
<li><a href="https://github.com/numpy/numpy/commit/5ac09da28abacd6f9eed4971b8e7eb6d0b6334a4"><code>5ac09da</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/numpy/numpy/issues/22815">#22815</a> from charris/backport-22814</li>
<li><a href="https://github.com/numpy/numpy/commit/df2d26fda121e5204771dc143d1d96d0d0107f71"><code>df2d26f</code></a> BLD: use newer version of delocate</li>
<li><a href="https://github.com/numpy/numpy/commit/e18104ecc14f734076d0e24f25766e9f15792c7c"><code>e18104e</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/numpy/numpy/issues/22805">#22805</a> from charris/backport-22804</li>
<li><a href="https://github.com/numpy/numpy/commit/6d444245087fa0166749d8dbc780b5e82b98e6f4"><code>6d44424</code></a> REV: revert change to <code>numpyconfig.h</code> for sizeof(type) hardcoding on macOS</li>
<li><a href="https://github.com/numpy/numpy/commit/c48459319ac837b6539d4f4f16de3de711d24672"><code>c484593</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/numpy/numpy/issues/22795">#22795</a> from charris/backport-22791</li>
<li><a href="https://github.com/numpy/numpy/commit/0904c01d3f608f22a27327adf29a06615184be45"><code>0904c01</code></a> Change argument to npy_floatstatus_..._barrier() functions to ensure it</li>
<li><a href="https://github.com/numpy/numpy/commit/34653f92760b8dad7c5db9a176b5325cc8074924"><code>34653f9</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/numpy/numpy/issues/22793">#22793</a> from charris/backport-22789</li>
<li><a href="https://github.com/numpy/numpy/commit/21f7096ed9d274f95a9611f374227587f2fce377"><code>21f7096</code></a> BUG: Fix infinite recursion in longdouble/large integer scalar ops</li>
<li>Additional commits viewable in <a href="https://github.com/numpy/numpy/compare/v1.22.2...v1.24.0">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps numpy from 1.22.2 to 1.24.0.
Release notes
Sourced from numpy's releases.
... (truncated)
Commits
8cec820Merge pull request #22813 from charris/prepare-1.24.0-release8d33e68REL: Prepare for the NumPy 1.24.0 release.5ac09daMerge pull request #22815 from charris/backport-22814df2d26fBLD: use newer version of delocatee18104eMerge pull request #22805 from charris/backport-228046d44424REV: revert change tonumpyconfig.hfor sizeof(type) hardcoding on macOSc484593Merge pull request #22795 from charris/backport-227910904c01Change argument to npy_floatstatus_..._barrier() functions to ensure it34653f9Merge pull request #22793 from charris/backport-2278921f7096BUG: Fix infinite recursion in longdouble/large integer scalar opsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Superseded by #119.
Pull request closed