zarr-python icon indicating copy to clipboard operation
zarr-python copied to clipboard

Does initializing zarr store/group/arr load data or create pointer to them?

Open aliaksei-chareshneu opened this issue 3 years ago • 1 comments
trafficstars

Dear all,

Could you tell me please if zarr actually loads the data when the following piece of code is executed, or it just creates a pointer to array?

Assume path is actual path, sgroup is group namde, sarr is arr name

store = zarr.DirectoryStore(path)
root = zarr.group(store=store)
arr = root.sgroup.sarr

Best regards, Aliaksei

  • Value of zarr.__version__: 2.10.3
  • Value of numcodecs.__version__: 0.9.1
  • Version of Python interpreter: 3.8.2
  • Operating system (Linux/Windows/Mac): Windows 7
  • How Zarr was installed (e.g., "using pip into virtual environment", or "using conda"): using pip into virtual environment

aliaksei-chareshneu avatar Mar 08 '22 14:03 aliaksei-chareshneu

@aliaksei-chareshneu : no chunks (i.e. no data) should be loaded at this point. Only metadata about how chunks there are, where they are located, etc.

joshmoore avatar Mar 08 '22 14:03 joshmoore