@@ -408,27 +408,47 @@ async def create(
408408 attributes : dict[str, JSON], optional
409409 The attributes of the array (default is None).
410410 chunk_shape : ChunkCoords, optional
411- The shape of the array's chunks (default is None).
411+ The shape of the array's chunks
412+ V3 only. V2 arrays should use `chunks` instead.
413+ Default values are guessed based on the shape and dtype.
412414 chunk_key_encoding : ChunkKeyEncoding, optional
413- The chunk key encoding (default is None).
414- codecs : Iterable[Codec | dict[str, JSON]], optional
415- The codecs used to encode the data (default is None).
415+ A specification of how the chunk keys are represented in storage.
416+ V3 only. V2 arrays should use `dimension_separator` instead.
417+ Default is ("default", "/").
418+ codecs : Sequence of Codecs or dicts, optional
419+ An iterable of Codec or dict serializations thereof. The elements of
420+ this collection specify the transformation from array values to stored bytes.
421+ V3 only. V2 arrays should use `filters` and `compressor` instead.
422+ If no codecs are provided, default codecs will be used:
423+ - For numeric arrays, the default is `BytesCodec` and `ZstdCodec`.
424+ - For Unicode strings, the default is `VLenUTF8Codec`.
425+ - For bytes or objects, the default is `VLenBytesCodec`.
426+ These defaults can be changed using the `array.v3_default_codecs` variable in the Zarr config.
416427 dimension_names : Iterable[str], optional
417428 The names of the dimensions (default is None).
429+ V3 only. V2 arrays should not use this parameter.
418430 chunks : ShapeLike, optional
419- The shape of the array's chunks (default is None).
420- V2 only. V3 arrays should not have 'chunks' parameter.
431+ The shape of the array's chunks.
432+ V2 only. V3 arrays should use `chunk_shape` instead.
433+ Default values are guessed based on the shape and dtype.
421434 dimension_separator : Literal[".", "/"], optional
422- The dimension separator (default is None ).
423- V2 only. V3 arrays cannot have a dimension separator .
435+ The dimension separator (default is "." ).
436+ V2 only. V3 arrays should use `chunk_key_encoding` instead .
424437 order : Literal["C", "F"], optional
425- The order of the array (default is None ).
438+ The order of the array (default is specified in the Zarr config `array.order` ).
426439 filters : list[dict[str, JSON]], optional
427- The filters used to compress the data (default is None).
428- V2 only. V3 arrays should not have 'filters' parameter.
440+ Sequence of filters to use to encode chunk data prior to compression.
441+ V2 only. V3 arrays should use `codecs` instead. If neither `compressor`
442+ nor `filters` are provided, a default compressor will be used. (see
443+ `compressor` for details)
429444 compressor : dict[str, JSON], optional
430445 The compressor used to compress the data (default is None).
431- V2 only. V3 arrays should not have 'compressor' parameter.
446+ V2 only. V3 arrays should use `codecs` instead.
447+ If neither `compressor` nor `filters` are provided, a default compressor will be used:
448+ - For numeric arrays, the default is `ZstdCodec`.
449+ - For Unicode strings, the default is `VLenUTF8Codec`.
450+ - For bytes or objects, the default is `VLenBytesCodec`.
451+ These defaults can be changed using the `array.v2_default_compressor` variable in the Zarr config.
432452 overwrite : bool, optional
433453 Whether to raise an error if the store already exists (default is False).
434454 data : npt.ArrayLike, optional
@@ -1472,23 +1492,47 @@ def create(
14721492 dtype : npt.DTypeLike
14731493 The data type of the array.
14741494 chunk_shape : ChunkCoords, optional
1475- The shape of the Array's chunks (default is None).
1495+ The shape of the Array's chunks.
1496+ V3 only. V2 arrays should use `chunks` instead.
1497+ Default values are guessed based on the shape and dtype.
14761498 chunk_key_encoding : ChunkKeyEncoding, optional
1477- The chunk key encoding (default is None).
1478- codecs : Iterable[Codec | dict[str, JSON]], optional
1479- The codecs used to encode the data (default is None).
1499+ A specification of how the chunk keys are represented in storage.
1500+ V3 only. V2 arrays should use `dimension_separator` instead.
1501+ Default is ("default", "/").
1502+ codecs : Sequence of Codecs or dicts, optional
1503+ An iterable of Codec or dict serializations thereof. The elements of
1504+ this collection specify the transformation from array values to stored bytes.
1505+ V3 only. V2 arrays should use `filters` and `compressor` instead.
1506+ If no codecs are provided, default codecs will be used:
1507+ - For numeric arrays, the default is `BytesCodec` and `ZstdCodec`.
1508+ - For Unicode strings, the default is `VLenUTF8Codec`.
1509+ - For bytes or objects, the default is `VLenBytesCodec`.
1510+ These defaults can be changed using the `array.v3_default_codecs` variable in the Zarr config.
14801511 dimension_names : Iterable[str], optional
14811512 The names of the dimensions (default is None).
1513+ V3 only. V2 arrays should not use this parameter.
14821514 chunks : ChunkCoords, optional
1483- The shape of the Array's chunks (default is None).
1515+ The shape of the array's chunks.
1516+ V2 only. V3 arrays should use `chunk_shape` instead.
1517+ Default values are guessed based on the shape and dtype.
14841518 dimension_separator : Literal[".", "/"], optional
1485- The dimension separator (default is None).
1519+ The dimension separator (default is ".").
1520+ V2 only. V3 arrays should use `chunk_key_encoding` instead.
14861521 order : Literal["C", "F"], optional
1487- The order of the array (default is None ).
1522+ The order of the array (default is specified in the Zarr config `array.order` ).
14881523 filters : list[dict[str, JSON]], optional
1489- The filters used to compress the data (default is None).
1524+ Sequence of filters to use to encode chunk data prior to compression.
1525+ V2 only. V3 arrays should use `codecs` instead. If neither `compressor`
1526+ nor `filters` are provided, a default compressor will be used. (see
1527+ `compressor` for details)
14901528 compressor : dict[str, JSON], optional
1491- The compressor used to compress the data (default is None).
1529+ Primary compressor to compress chunk data.
1530+ V2 only. V3 arrays should use `codecs` instead.
1531+ If neither `compressor` nor `filters` are provided, a default compressor will be used:
1532+ - For numeric arrays, the default is `ZstdCodec`.
1533+ - For Unicode strings, the default is `VLenUTF8Codec`.
1534+ - For bytes or objects, the default is `VLenBytesCodec`.
1535+ These defaults can be changed using the `array.v2_default_compressor` variable in the Zarr config.
14921536 overwrite : bool, optional
14931537 Whether to raise an error if the store already exists (default is False).
14941538
0 commit comments