Skip to content

Commit

Permalink
fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamman committed Nov 9, 2024
1 parent 542da8e commit ed8a8ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/zarr/api/asynchronous.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ async def open_array(
try:
return await AsyncArray.open(store_path, zarr_format=zarr_format)
except FileNotFoundError:
if not store_path.store.readonly:
if not store_path.readonly:
return await create(
store=store_path,
zarr_format=zarr_format or _default_zarr_version(),
Expand Down
2 changes: 1 addition & 1 deletion src/zarr/core/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ def read_only(self) -> bool:
True if the array is read-only
"""
# Backwards compatibility for 2.x
return self.store_path.store.readonly
return self.store_path.readonly

@property
def path(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion src/zarr/core/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ def store(self) -> Store:
@property
def read_only(self) -> bool:
# Backwards compatibility for 2.x
return self.store_path.store.readonly
return self.store_path.readonly

@property
def synchronizer(self) -> None:
Expand Down

0 comments on commit ed8a8ec

Please sign in to comment.