@@ -1235,24 +1235,28 @@ def basename(self) -> str:
12351235 @property
12361236 def cdata_shape (self ) -> tuple [int , ...]:
12371237 """
1238- The shape of the chunk grid for this array.
1238+ The number of chunks along each dimension.
1239+
1240+ When sharding is used, this counts inner chunks (not shards) per dimension.
12391241
12401242 Returns
12411243 -------
12421244 tuple[int, ...]
1243- The shape of the chunk grid for this array .
1245+ The number of chunks along each dimension .
12441246 """
12451247 return self ._chunk_grid_shape
12461248
12471249 @property
12481250 def _chunk_grid_shape (self ) -> tuple [int , ...]:
12491251 """
1250- The shape of the chunk grid for this array.
1252+ The number of chunks along each dimension.
1253+
1254+ When sharding is used, this counts inner chunks (not shards) per dimension.
12511255
12521256 Returns
12531257 -------
12541258 tuple[int, ...]
1255- The shape of the chunk grid for this array .
1259+ The number of chunks along each dimension .
12561260 """
12571261 return tuple (starmap (ceildiv , zip (self .shape , self .chunks , strict = True )))
12581262
@@ -2422,14 +2426,23 @@ def compressors(self) -> tuple[Numcodec, ...] | tuple[BytesBytesCodec, ...]:
24222426 @property
24232427 def cdata_shape (self ) -> tuple [int , ...]:
24242428 """
2425- The shape of the chunk grid for this array.
2429+ The number of chunks along each dimension.
2430+
2431+ When sharding is used, this counts inner chunks (not shards) per dimension.
24262432 """
24272433 return self .async_array ._chunk_grid_shape
24282434
24292435 @property
24302436 def _chunk_grid_shape (self ) -> tuple [int , ...]:
24312437 """
2432- The shape of the chunk grid for this array.
2438+ The number of chunks along each dimension.
2439+
2440+ When sharding is used, this counts inner chunks (not shards) per dimension.
2441+
2442+ Returns
2443+ -------
2444+ tuple[int, ...]
2445+ The number of chunks along each dimension.
24332446 """
24342447 return self .async_array ._chunk_grid_shape
24352448
0 commit comments