| 1 |
From: Antonio Valentino <[email protected]> |
| 2 |
Date: Sun, 28 Jun 2026 09:00:03 +0000 |
| 3 |
Subject: zarr-3.2-compat |
| 4 |
|
| 5 |
Origin: https://github.com/dask/dask/pull/12366/changes/4c2ad6d49feabe0498018804285f2218abb6eb9f |
| 6 |
Forwarded: not-needed |
| 7 |
--- |
| 8 |
dask/array/core.py | 2 +- |
| 9 |
1 file changed, 1 insertion(+), 1 deletion(-) |
| 10 |
|
| 11 |
diff --git a/dask/array/core.py b/dask/array/core.py |
| 12 |
index 7dfff2b..4f121d2 100644 |
| 13 |
--- a/dask/array/core.py |
| 14 |
+++ b/dask/array/core.py |
| 15 |
@@ -3853,7 +3853,7 @@ def to_zarr( |
| 16 |
else: |
| 17 |
store = url |
| 18 |
|
| 19 |
- chunks = [c[0] for c in arr.chunks] |
| 20 |
+ chunks = [max(c[0], 1) for c in arr.chunks] |
| 21 |
|
| 22 |
z = zarr.create( |
| 23 |
shape=arr.shape, |