-
-
Notifications
You must be signed in to change notification settings - Fork 357
Closed
Labels
bugPotential issues with the zarr-python libraryPotential issues with the zarr-python library
Description
Zarr version
3.0.0a1
Numcodecs version
0.12.1
Python Version
3.11.9
Operating System
Mac
Installation
pip
Description
The array attributes nbytes
, nchunks
, and nchunks_initialized
are all missing in v3.
Steps to reproduce
>>> import zarr.v2 as zarr
>>> z = zarr.open(store='example-v2.zarr', mode='w', shape=(3, 2))
>>> z.nbytes, z.nchunks, z.nchunks_initialized
(48, 1, 0)
>>> import zarr
>>> z = zarr.open(store='example-v3.zarr', mode='w', shape=(3, 2))
>>> z.nbytes
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Array' object has no attribute 'nbytes'
>>> z.nchunks
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Array' object has no attribute 'nchunks'. Did you mean: 'chunks'?
>>> z.nchunks_initialized
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Array' object has no attribute 'nchunks_initialized'
Additional output
No response
Metadata
Metadata
Assignees
Labels
bugPotential issues with the zarr-python libraryPotential issues with the zarr-python library