@@ -952,46 +952,48 @@ async def create_array(
952952 dimension_names : Iterable [str ] | None = None ,
953953 storage_options : dict [str , Any ] | None = None ,
954954 overwrite : bool = False ,
955- config : ArrayConfig | ArrayConfigParams | None = None
955+ config : ArrayConfig | ArrayConfigParams | None = None ,
956956) -> AsyncArray [ArrayV2Metadata ] | AsyncArray [ArrayV3Metadata ]:
957957 """Create an array.
958958
959959 Parameters
960960 ----------
961- store: str or Store
961+ store : str or Store
962962 Store or path to directory in file system or name of zip file.
963- path: str or None, optional
963+ path : str or None, optional
964964 The name of the array within the store. If ``path`` is ``None``, the array will be located
965965 at the root of the store.
966- shape: ChunkCoords
966+ shape : ChunkCoords
967967 Shape of the array.
968- dtype: npt.DTypeLike
968+ dtype : npt.DTypeLike
969969 Data type of the array.
970- chunk_shape: ChunkCoords
970+ chunk_shape : ChunkCoords
971971 Chunk shape of the array.
972- shard_shape: ChunkCoords | None
973- Shard shape of the array.
974- filters: Iterable[Codec], optional
972+ shard_shape : ChunkCoords, optional
973+ Shard shape of the array. The default value of ``None`` results in no sharding at all.
974+ filters : Iterable[Codec], optional
975975 List of filters to apply to the array.
976- compressors: Iterable[Codec], optional
976+ compressors : Iterable[Codec], optional
977977 List of compressors to apply to the array.
978- fill_value: Any, optional
978+ fill_value : Any, optional
979979 Fill value for the array.
980- order: {"C", "F"}, optional
980+ order : {"C", "F"}, optional
981981 Memory layout of the array.
982- zarr_format: {2, 3}, optional
982+ zarr_format : {2, 3}, optional
983983 The zarr format to use when saving.
984- attributes: dict, optional
984+ attributes : dict, optional
985985 Attributes for the array.
986- chunk_key_encoding: ChunkKeyEncoding, optional
986+ chunk_key_encoding : ChunkKeyEncoding, optional
987987 The chunk key encoding to use.
988- dimension_names: Iterable[str], optional
988+ dimension_names : Iterable[str], optional
989989 Dimension names for the array.
990- storage_options: dict, optional
990+ storage_options : dict, optional
991991 If using an fsspec URL to create the store, these will be passed to the backend implementation.
992992 Ignored otherwise.
993- overwrite: bool, default False
993+ overwrite : bool, default False
994994 Whether to overwrite an array with the same name in the store, if one exists.
995+ config : ArrayConfig or ArrayConfigParams, optional
996+ Runtime configuration for the array.
995997
996998 Returns
997999 -------
@@ -1026,7 +1028,7 @@ async def create_array(
10261028 if dimension_names is not None :
10271029 raise ValueError ("Zarr v2 arrays do not support dimension names." )
10281030 if order is None :
1029- order_parsed = zarr_config .get (' array.order' )
1031+ order_parsed = zarr_config .get (" array.order" )
10301032 else :
10311033 order_parsed = order
10321034 return await AsyncArray ._create_v2 (
@@ -1071,7 +1073,7 @@ async def create_array(
10711073 codecs = codecs ,
10721074 dimension_names = dimension_names ,
10731075 overwrite = overwrite ,
1074- config = config_parsed
1076+ config = config_parsed ,
10751077 )
10761078
10771079
0 commit comments