Open hoxbro opened 1 month ago
I've recently come across this as well (in a suddenly failing xcube unit test) and confirmed its presence in the current xarray repo version (commit b5180749d351f8b85fd39677bf137caaa90288a7). In the xcube case, we've worked around the immediate problem but have a few dozen other linspace
calls in our codebase, so it would be doable but a non-trivial effort to go through them all and make sure they'll never encounter a DataArray
.
What happened?
Trying to be compatible with Numpy 2, I discovered the following behavior change.
I could work around it, so it's not urgent for me to be fixed and can be marked as
wontfix
.What did you expect to happen?
No response
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
No response
Environment