Commit d2a27b6
authored
fix: clamp HDF chunk dimensions to >= 1 for zero-length datasets (#977)
Zarr v3 allows `shape=(0,)` but forbids zero-length chunk dimensions,
now enforced by zarr-python 3.2.0+. When falling back to `dataset.shape`
for chunking, clamp each dim to a minimum of 1 so the HDFParser handles
empty HDF5 datasets across all supported zarr versions.1 parent 8c637b2 commit d2a27b6
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
0 commit comments