16
16
JSON ,
17
17
AccessModeLiteral ,
18
18
ChunkCoords ,
19
+ DimensionNames ,
19
20
MemoryOrder ,
20
21
ZarrFormat ,
21
22
_default_zarr_format ,
@@ -865,7 +866,7 @@ async def create(
865
866
| None
866
867
) = None ,
867
868
codecs : Iterable [Codec | dict [str , JSON ]] | None = None ,
868
- dimension_names : Iterable [ str ] | None = None ,
869
+ dimension_names : DimensionNames = None ,
869
870
storage_options : dict [str , Any ] | None = None ,
870
871
config : ArrayConfigLike | None = None ,
871
872
** kwargs : Any ,
@@ -1040,15 +1041,13 @@ async def create(
1040
1041
)
1041
1042
warnings .warn (UserWarning (msg ), stacklevel = 1 )
1042
1043
config_dict ["write_empty_chunks" ] = write_empty_chunks
1043
- if order is not None :
1044
- if config is not None :
1045
- msg = (
1046
- "Both order and config keyword arguments are set. "
1047
- "This is redundant. When both are set, order will be ignored and "
1048
- "config will be used."
1049
- )
1050
- warnings .warn (UserWarning (msg ), stacklevel = 1 )
1051
- config_dict ["order" ] = order
1044
+ if order is not None and config is not None :
1045
+ msg = (
1046
+ "Both order and config keyword arguments are set. "
1047
+ "This is redundant. When both are set, order will be ignored and "
1048
+ "config will be used."
1049
+ )
1050
+ warnings .warn (UserWarning (msg ), stacklevel = 1 )
1052
1051
1053
1052
config_parsed = ArrayConfig .from_dict (config_dict )
1054
1053
@@ -1062,6 +1061,7 @@ async def create(
1062
1061
overwrite = overwrite ,
1063
1062
filters = filters ,
1064
1063
dimension_separator = dimension_separator ,
1064
+ order = order ,
1065
1065
zarr_format = zarr_format ,
1066
1066
chunk_shape = chunk_shape ,
1067
1067
chunk_key_encoding = chunk_key_encoding ,
0 commit comments