Skip to content

Commit 3c4b6db

Browse files
authored
Update array.py
1 parent 75c5bc5 commit 3c4b6db

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/zarr/core/array.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,28 +1235,28 @@ def basename(self) -> str:
12351235
@property
12361236
def cdata_shape(self) -> tuple[int, ...]:
12371237
"""
1238-
The number of independently compressible units along each dimension.
1238+
The number of chunks along each dimension.
12391239
12401240
When sharding is used, this counts inner chunks (not shards) per dimension.
12411241
12421242
Returns
12431243
-------
12441244
tuple[int, ...]
1245-
The number of independently compressible units along each dimension.
1245+
The number of chunks along each dimension.
12461246
"""
12471247
return self._chunk_grid_shape
12481248

12491249
@property
12501250
def _chunk_grid_shape(self) -> tuple[int, ...]:
12511251
"""
1252-
The number of independently compressible units along each dimension.
1252+
The number of chunks along each dimension.
12531253
12541254
When sharding is used, this counts inner chunks (not shards) per dimension.
12551255
12561256
Returns
12571257
-------
12581258
tuple[int, ...]
1259-
The number of independently compressible units along each dimension.
1259+
The number of chunks along each dimension.
12601260
"""
12611261
return tuple(starmap(ceildiv, zip(self.shape, self.chunks, strict=True)))
12621262

@@ -2403,7 +2403,7 @@ def compressors(self) -> tuple[Numcodec, ...] | tuple[BytesBytesCodec, ...]:
24032403
@property
24042404
def cdata_shape(self) -> tuple[int, ...]:
24052405
"""
2406-
The number of independently compressible units along each dimension.
2406+
The number of chunks along each dimension.
24072407
24082408
When sharding is used, this counts inner chunks (not shards) per dimension.
24092409
"""
@@ -2412,14 +2412,14 @@ def cdata_shape(self) -> tuple[int, ...]:
24122412
@property
24132413
def _chunk_grid_shape(self) -> tuple[int, ...]:
24142414
"""
2415-
The number of independently compressible units along each dimension.
2415+
The number of chunks along each dimension.
24162416
24172417
When sharding is used, this counts inner chunks (not shards) per dimension.
24182418
24192419
Returns
24202420
-------
24212421
tuple[int, ...]
2422-
The number of independently compressible units along each dimension.
2422+
The number of chunks along each dimension.
24232423
"""
24242424
return self.async_array._chunk_grid_shape
24252425

0 commit comments

Comments
 (0)