Skip to content

Array.read_only incorrect #2949

Closed
Closed
@dstansby

Description

@dstansby
import zarr
import zarr.storage

store = zarr.storage.MemoryStore()
zarr.create((100,), store=store, zarr_format=2, path="a")


arr = zarr.open_array(store=store, path="a", zarr_format=2, mode="r")
print(arr.read_only)
# False

Given the mode is "r", I think .read_only should return True?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPotential issues with the zarr-python library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions