File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -639,7 +639,7 @@ def open_store(
639639 def open_group (
640640 cls ,
641641 store ,
642- mode : ZarrWriteModes = "r" ,
642+ mode : ZarrWriteModes = None ,
643643 synchronizer = None ,
644644 group = None ,
645645 consolidated = False ,
@@ -1561,7 +1561,7 @@ def open_dataset(
15611561 use_cftime = None ,
15621562 decode_timedelta = None ,
15631563 group = None ,
1564- mode = "r" ,
1564+ mode = None ,
15651565 synchronizer = None ,
15661566 consolidated = None ,
15671567 chunk_store = None ,
@@ -1746,6 +1746,9 @@ def _get_open_params(
17461746 synchronizer = synchronizer ,
17471747 path = group ,
17481748 )
1749+ if mode is None :
1750+ # Let zarr-python use its default open mode
1751+ open_kwargs .pop ("mode" )
17491752 open_kwargs ["storage_options" ] = storage_options
17501753
17511754 zarr_format = _handle_zarr_version_or_format (
You can’t perform that action at this time.
0 commit comments