Skip to content

Commit 6dfe4d1

Browse files
Raphael DussinRaphael Dussin
authored andcommitted
allows to open read-only zip
1 parent ad71fa6 commit 6dfe4d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zarr/creation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def normalize_store_arg(store, clobber=False, default=dict):
132132
return default()
133133
elif isinstance(store, str):
134134
if store.endswith('.zip'):
135-
mode = 'w' if clobber else 'a'
135+
mode = 'w' if clobber else 'r'
136136
return ZipStore(store, mode=mode)
137137
elif store.endswith('.n5'):
138138
return N5Store(store)

0 commit comments

Comments
 (0)