Attributes
linc_convert.utils.io.zarr.attributes ¶
Attributes Handling for Zarr.
This file contains code from the Zarr project https://github.com/zarr-developers/zarr-python
Attributes ¶
Attributes(obj, *, write_through=True)
Bases: MutableMapping[str, Any]
In-memory, write-through (configurable) attributes mapping for Zarr v2/v3.
Reads are served from an in-memory cache. On mutation, the cache is updated and, if write_through is True, the file is flushed atomically. Otherwise, call .flush() explicitly to persist.
Works for both arrays and groups, as long as the parent exposes: - .store_path (path-like, directory) - .zarr_version (2 or 3)