You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on this comment the error message should be improved when attempting to open a Zarr group.
Steps to reproduce
importzarr# Create the root group in a directoryroot=zarr.open('example.zarr', mode='w')
# Create variable 'w' at the root levelroot.create_array('w', shape=(128,), dtype='float64')
# Create group 'a' and add variable 'A'group_a=root.create_group('a')
group_a.create_array('A', shape=(128, 256), dtype='float64', chunks=(64, 256))
# Create group 'c' and add variables 'w' and 'z'group_c=root.create_group('c')
group_c.create_array('w', shape=(128,), dtype='float64')
group_c.create_array('z', shape=(128, 256), dtype='float64', chunks=(64, 256))
# Create subgroup 'd' under group 'c' and add variable 'G'group_d=group_c.create_group('d')
group_d.create_array('G', shape=(128, 256), dtype='float64', chunks=(64, 256))
# Consolidate metadatazarr.consolidate_metadata('example.zarr')
print(root.tree())
/
├── a
│ └── A (128, 256) float64
├── c
│ ├── d
│ │ └── G (128, 256) float64
│ ├── w (128,) float64
│ └── z (128, 256) float64
└── w (128,) float64
Zarr version
v3.0.1
Numcodecs version
v0.15.0
Python Version
3.12
Operating System
Linux
Installation
conda
Description
Based on this comment the error message should be improved when attempting to open a Zarr group.
Steps to reproduce
when reading a subgroup that doesn't exist,
Additional output
No response
The text was updated successfully, but these errors were encountered: