Skip to content

Commit 24fefea

Browse files
committed
update chunks docstrings
1 parent a0c5693 commit 24fefea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/zarr/api/synchronous.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,9 +834,9 @@ def create_array(
834834
data : np.ndarray, optional
835835
Array-like data to use for initializing the array. If this parameter is provided, the
836836
``shape`` and ``dtype`` parameters must be ``None``.
837-
chunks : tuple[int, ...], optional
837+
chunks : tuple[int, ...] | Literal["auto"], default="auto"
838838
Chunk shape of the array.
839-
If not specified, default are guessed based on the shape and dtype.
839+
If chunks is "auto", a chunk shape is guessed based on the shape of the array and the dtype.
840840
shards : tuple[int, ...], optional
841841
Shard shape of the array. The default value of ``None`` results in no sharding at all.
842842
filters : Iterable[Codec] | Literal["auto"], optional

src/zarr/core/array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4460,9 +4460,9 @@ async def create_array(
44604460
data : np.ndarray, optional
44614461
Array-like data to use for initializing the array. If this parameter is provided, the
44624462
``shape`` and ``dtype`` parameters must be ``None``.
4463-
chunks : tuple[int, ...], optional
4463+
chunks : tuple[int, ...] | Literal["auto"], default="auto"
44644464
Chunk shape of the array.
4465-
If not specified, default are guessed based on the shape and dtype.
4465+
If chunks is "auto", a chunk shape is guessed based on the shape of the array and the dtype.
44664466
shards : tuple[int, ...], optional
44674467
Shard shape of the array. The default value of ``None`` results in no sharding at all.
44684468
filters : Iterable[Codec] | Literal["auto"], optional

0 commit comments

Comments
 (0)