-
Notifications
You must be signed in to change notification settings - Fork 518
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
ENH: avoid deprecation warnings from numpy 2 #2416
Conversation
d0deef3
to
f7e689a
Compare
f7e689a
to
416ce5c
Compare
416ce5c
to
d67f231
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2416 +/- ##
=======================================
Coverage 89.58% 89.58%
=======================================
Files 17 17
Lines 2391 2401 +10
=======================================
+ Hits 2142 2151 +9
- Misses 249 250 +1 ☔ View full report in Codecov by Sentry. |
@tacaswell should I add tests for any/all new (uncovered) paths ? |
Yes please if it is not excessively complicated to make the tests work with both np1 and np2. |
d67f231
to
f0d84e3
Compare
f0d84e3
to
3776eab
Compare
Took me longer than I anticipated but I added tests to cover most new paths (I couldn't figure out how to use |
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.
Thanks! I think the NumPy copy
stuff can be simplified a bit, I've put some comments about it inline.
Co-authored-by: Thomas Kluyver <thomas.kluyver@xfel.eu>
Co-authored-by: Thomas Kluyver <thomas.kluyver@xfel.eu>
Thanks! |
Fixes a couple deprecation warnings caught while running the test suite with
pytest -Werror
against numpy dev.Namely
xref: numpy/numpy#24634
And
xref: numpy/numpy#25168