Skip to content

Commit ed91644

Browse files
committed
Add 'w' to list of valid modes in open to create a group
1 parent 272d05a commit ed91644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/api/asynchronous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ async def open(
312312
store_path = await make_store_path(store, mode=mode, path=path, storage_options=storage_options)
313313

314314
# TODO: the mode check below seems wrong!
315-
if "shape" not in kwargs and mode in {"a", "r", "r+"}:
315+
if "shape" not in kwargs and mode in {"a", "r", "r+", "w"}:
316316
try:
317317
metadata_dict = await get_array_metadata(store_path, zarr_format=zarr_format)
318318
# TODO: remove this cast when we fix typing for array metadata dicts

0 commit comments

Comments
 (0)