Skip to content

Commit 8846c96

Browse files
committed
use shard_grid_shape instead of cdata_shape in nchunks
1 parent 35b4891 commit 8846c96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/core/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ def nchunks(self) -> int:
12331233
int
12341234
The total number of chunks in the array.
12351235
"""
1236-
return product(self.cdata_shape)
1236+
return product(self.shard_grid_shape)
12371237

12381238
async def nchunks_initialized(self) -> int:
12391239
"""

0 commit comments

Comments
 (0)