You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Minimal example — the example is as focused as reasonably possible to demonstrate the underlying issue in xarray.
Complete example — the example is self-contained, including all data and the text of any traceback.
Verifiable example — the example copy & pastes into an IPython prompt or Binder notebook, returning the result.
New issue — a search of GitHub Issues suggests this is not a duplicate.
Recent environment — the issue occurs with the latest version of xarray and its dependencies.
Relevant log output
No response
Anything else we need to know?
It fails on the arr.reshape call, because the array API standard has reshape be a function, not a method.
We do in fact have an array API-compatible version of reshape defined in duck_array_ops.py, it just apparently isn't yet used everywhere we call reshape.
What happened?
Unstacking fails for array types that strictly follow the array API standard.
What did you expect to happen?
This obviously works fine with a normal numpy array.
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
No response
Anything else we need to know?
It fails on the
arr.reshape
call, because the array API standard has reshape be a function, not a method.We do in fact have an array API-compatible version of
reshape
defined induck_array_ops.py
, it just apparently isn't yet used everywhere we call reshape.xarray/xarray/core/duck_array_ops.py
Line 363 in 037a39e
Environment
main branch of xarray, numpy 1.26.0
The text was updated successfully, but these errors were encountered: