-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demo Numpy v2 #6035
Demo Numpy v2 #6035
Conversation
* NEP29 NumPy pin. * Pin back from NumPy v2 (#6035). * PyPI pins.
Note to self: |
⏱️ Performance Benchmark Report: 7a969b1Performance shifts
Full benchmark results
Generated by GHA run |
Fix doctests.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6035 +/- ##
==========================================
+ Coverage 89.82% 89.83% +0.01%
==========================================
Files 88 88
Lines 23185 23211 +26
Branches 4314 4316 +2
==========================================
+ Hits 20825 20852 +27
+ Misses 1628 1627 -1
Partials 732 732 ☔ View full report in Codecov by Sentry. |
I propose that the performance changes (e.g. #6035 (comment)) are:
|
|
⏱️ Performance Benchmark Report: 973b37fPerformance shifts
Full benchmark results
Generated by GHA run |
⏱️ Performance Benchmark Report: 35046d6Performance shifts
Full benchmark results
Generated by GHA run |
⏱️ Performance Benchmark Report: fcf2457Performance shifts
Full benchmark results
Generated by GHA run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @trexfeathers. Thanks for this PR.
Thanks @HGWright! |
* upstream/main: (194 commits) Restore latest Whats New files. [pre-commit.ci] pre-commit autoupdate (SciTools#6205) correct major minor in whatsnew (SciTools#6202) What's new updates for v3.11.0rc0 . (SciTools#6201) Update CF standard names table. (SciTools#6200) Specify meta in dask.array.map_blocks (SciTools#5989) added in a vertical rule for surface fields (SciTools#5734) Updated environment lockfiles (SciTools#6197) Reduce duplication in cf.py spanning checks. (SciTools#6196) Fix attribute array comparison (SciTools#6181) Enable factory references to create new dimensions on load. (SciTools#6168) (SciTools#6194) Improve handling of masks in concatenate (SciTools#6187) Demo Numpy v2 (SciTools#6035) Bump scitools/workflows from 2024.10.1 to 2024.10.2 (SciTools#6186) Document use of new_axis to control merge (SciTools#6180) Updated environment lockfiles (SciTools#6184) [pre-commit.ci] pre-commit autoupdate (SciTools#6175) Updated environment lockfiles (SciTools#6183) Update to `cell_method` parsing (SciTools#6083) Bump scitools/workflows from 2024.10.0 to 2024.10.1 (SciTools#6179) ...
🚀 Pull Request
Description
This PR expands on the original demonstration (a82bea0) to make Iris fully NumPy v2 compliant. Notable changes:
Expand for the text from the original demonstration:
We already know that Iris' syntax is NumPy v2 compliant, thanks to Ruff, but that does not prove that the code will all function with NumPy v2.
A vanilla Conda install of Iris does get NumPy v2, but unfortunately our full test environment does not (some of the dependencies must be pinned). So I have forced the issue by manually editing
requirements/locks/py312-linux-64.lock
, which does thankfully produce a working environment since none of NumPy's dependencies have changed.The test failures show us what work we need to do for Iris to be compliant with NumPy v2. It seems to mostly be around changes in:
dtype
sConsult Iris pull request check list
Add any of the below labels to trigger actions on this PR: