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
{{ message }}
Repository navigation
Dataset.to_zarr fails on dask array with zero-length dimension (ZeroDivisonError) #5741
What happened: I have an xr.Dataset with a dask-array-valued variable including zero-length dimension (other variables are non-empty). I tried saving it to zarr, but it fails with a zero division error.
What you expected to happen: I expect it to save without any errors.
Minimal Complete Verifiable Example: the following commands fail.
Activity
Added test_save_emptydim for zarr backends, which fails when chunking
Load all variables with zero entries before saving to_zarr
Updated whats-new.rst with information about fix for pydata#5741
Fix saving chunked datasets with zero length dimensions (#5742)
Fix saving chunked datasets with zero length dimensions (pydata#5742)