Repository navigation
Commit 37fc614
committed
fix(chunk-grids): reject NumPy booleans as chunk sizes on NumPy before 2.3
NumPy before 2.3 takes a NumPy boolean as an index with a
DeprecationWarning, so `operator.index(np.True_)` returned 1 there, and
the normalizer read `chunks=np.True_` as a chunk size of 1 instead of
rejecting it as zarr 3.4.0 did. The min-deps CI job failed on this. The
integer test now rejects a value whose dtype is NumPy bool before calling
`operator.index`.
Assisted-by: ClaudeCode:claude-opus-5-51 parent 007f60c commit 37fc614
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
346 | 349 | | |
347 | 350 | | |
348 | 351 | | |
| |||
0 commit comments