Skip to content

Commit 43c9c7e

Browse files
committed
fix: respect config when appending to array from zarr.open
1 parent 2c5ebac commit 43c9c7e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/zarr/api/asynchronous.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,11 @@ async def open(
324324
zarr_format = _metadata_dict["zarr_format"]
325325
is_v3_array = zarr_format == 3 and _metadata_dict.get("node_type") == "array"
326326
if is_v3_array or zarr_format == 2:
327-
return AsyncArray(store_path=store_path, metadata=_metadata_dict)
327+
return AsyncArray(
328+
store_path=store_path,
329+
metadata=_metadata_dict,
330+
config=kwargs.pop("config", None),
331+
)
328332
except (AssertionError, FileNotFoundError, NodeTypeValidationError):
329333
pass
330334
return await open_group(store=store_path, zarr_format=zarr_format, mode=mode, **kwargs)

0 commit comments

Comments
 (0)