Commit 3d53725
Address PR zarr-developers#3534 review comments
- Fix _info() crash for RectilinearChunkGrid arrays by catching
NotImplementedError from metadata.chunks (displays "<variable>")
- Fix spurious FutureWarning in _nchunks_initialized() by using
array.metadata.chunks instead of array.chunks
- Add empty-chunk validation in _normalize_rectilinear_chunks to reject
chunk specs where the last chunk(s) contain no valid data
- Remove FutureWarning deprecation on .chunks for RegularChunkGrid per
reviewer feedback; .chunks still raises NotImplementedError for
RectilinearChunkGrid
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 629d34a commit 3d53725
3 files changed
Lines changed: 19 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1070 | 1070 | | |
1071 | 1071 | | |
1072 | 1072 | | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
1076 | | - | |
1077 | 1073 | | |
1078 | 1074 | | |
1079 | 1075 | | |
1080 | 1076 | | |
1081 | | - | |
| 1077 | + | |
1082 | 1078 | | |
1083 | 1079 | | |
1084 | 1080 | | |
| |||
1096 | 1092 | | |
1097 | 1093 | | |
1098 | 1094 | | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
1105 | 1095 | | |
1106 | 1096 | | |
1107 | 1097 | | |
| |||
1990 | 1980 | | |
1991 | 1981 | | |
1992 | 1982 | | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
1993 | 1987 | | |
1994 | 1988 | | |
1995 | 1989 | | |
1996 | 1990 | | |
1997 | 1991 | | |
1998 | 1992 | | |
1999 | 1993 | | |
2000 | | - | |
| 1994 | + | |
2001 | 1995 | | |
2002 | 1996 | | |
2003 | 1997 | | |
| |||
2342 | 2336 | | |
2343 | 2337 | | |
2344 | 2338 | | |
2345 | | - | |
2346 | | - | |
2347 | | - | |
2348 | | - | |
2349 | 2339 | | |
2350 | 2340 | | |
2351 | 2341 | | |
2352 | 2342 | | |
2353 | | - | |
| 2343 | + | |
2354 | 2344 | | |
2355 | 2345 | | |
2356 | 2346 | | |
| |||
5734 | 5724 | | |
5735 | 5725 | | |
5736 | 5726 | | |
5737 | | - | |
| 5727 | + | |
5738 | 5728 | | |
5739 | 5729 | | |
5740 | 5730 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1397 | 1397 | | |
1398 | 1398 | | |
1399 | 1399 | | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
1400 | 1406 | | |
1401 | 1407 | | |
1402 | 1408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1326 | 1326 | | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | | - | |
1330 | | - | |
1331 | | - | |
1332 | | - | |
| 1329 | + | |
| 1330 | + | |
1333 | 1331 | | |
1334 | 1332 | | |
1335 | 1333 | | |
| |||
1340 | 1338 | | |
1341 | 1339 | | |
1342 | 1340 | | |
1343 | | - | |
1344 | | - | |
1345 | | - | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
| 1341 | + | |
| 1342 | + | |
1352 | 1343 | | |
1353 | 1344 | | |
1354 | 1345 | | |
1355 | 1346 | | |
1356 | | - | |
| 1347 | + | |
1357 | 1348 | | |
1358 | 1349 | | |
1359 | 1350 | | |
| |||
0 commit comments