Closed pont-us closed 6 days ago
Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient. If you have questions, some answers may be found in our contributing guidelines.
You might also want to add a note to
whats-new.rst
I didn't think this would qualify as a "notable" bug fix, but glad to oblige :)
From a quick look, it appears that the failing Doctests are due to other, unrelated NumPy 2 changes (mainly NEP 51).
yep, this is also fails on main
, so you can ignore these.
Congratulations on completing your first pull request! Welcome to Xarray! We are proud of you, and hope to see you again!
Thanks @pont-us
(any other changes for numpy 2.0 would be greatly appreciated if you're up for it...)
just FYI, the doctest / rtd will be fixed by #9177, and the normal CI will be fixed by #9136 (we just need to figure out whether using view
is a good idea). This leaves us with the pydap
plugin test, but since pydap
raises an error with numpy>=2
on import there's nothing we can do about this other than disabling in CI and raising an issue on the pydap
issue tracker.
That's awesome, thanks @keewis !
Thanks for the help @keewis and thanks for the thanks @max-sixty :). I don't think I'll have time for another PR in the short term, unfortunately, but I plan to at least open issues for one or two other NumPy-2-related surprises that I've come across (if nobody else does first).
Replace a reference to np.core.defchararray with np.char.chararray in xarray.testing.assertions, since the former no longer works on NumPy 2.0.0 and the latter is the "preferred alias" according to NumPy docs. See Issue #9165.
whats-new.rst