Closed lkstrp closed 3 weeks 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.
Adding a test would be great, but maybe this is one time where it's clear enough without one, so will plan to merge either way.
Thank you!
Congratulations on completing your first pull request! Welcome to Xarray! We are proud of you, and hope to see you again!
Thanks @lkstrp !
https://github.com/pydata/xarray/pull/9450 introduced strict handling of
zip()
. InDataArray.chunk()
, this leads to a breaking change when passing a tuple/list aschunks
where the length doesn't matchself.dims
. Previously these were just discarded.https://github.com/pydata/xarray/blob/2c8f2e81e2ac8c49cbdad86367c571cfef9cdba7/xarray/core/dataarray.py#L1452
Since passing a tuple/list as
chunks
is deprecated anyway, this PR simply adds aValueError
to make the problem clear to the user instead of this ambiguous strict zip error.Current error: