File tree 2 files changed +2
-4
lines changed 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ def to_zarr(
385
385
if self .filters is not None :
386
386
spec_dict ["filters" ] = [numcodecs .get_codec (f ) for f in spec_dict ["filters" ]]
387
387
if _contains_array (store , path ):
388
- extant_array = zarr .open_array (store , path = path , mode = "r" , zarr_format = 2 )
388
+ extant_array = zarr .open_array (store , path = path , zarr_format = 2 )
389
389
390
390
if not self .like (extant_array ):
391
391
if not overwrite :
Original file line number Diff line number Diff line change @@ -182,9 +182,7 @@ def test_array_spec(
182
182
assert ArraySpec .from_zarr (stored_2 ) == spec_2
183
183
184
184
# test that mode and write_empty_chunks get passed through
185
- assert spec_2 .to_zarr (store , path = "foo" , mode = "a" ).read_only is False
186
- # TODO: uncomment line below when https://github.com/zarr-developers/zarr-python/issues/2949 is fixed
187
- # assert spec_2.to_zarr(store, path="foo", mode="r").read_only is True
185
+ assert spec_2 .to_zarr (store , path = "foo" ).read_only is False
188
186
# TODO: work out if there's a way to get the status of "write_empty_chunks" from an array
189
187
"""
190
188
assert (
You can’t perform that action at this time.
0 commit comments