Commit ac95b4d
authored
Pass read_only into LocalStore.open() (#3432)
Currently, `read_only` is not passed in `open()`, which means the
default value of `read_only=False` is confusingly used instead.
This mostly just surprisng, but also has minor performance implications
because `read_only=False` means Zarr attempts to create directories on
this line (which is a no-op because `exist_ok=True`):
https://github.com/zarr-developers/zarr-python/blob/e738e2fb88dbead26a853d9982ff46eab64f313f/src/zarr/storage/_local.py#L167-L1691 parent e738e2f commit ac95b4d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
0 commit comments