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
Zarr-Python 2 exposed compressor and filters as attributes on the Array class. We should do the same for 3.0 for arrays with zarr_format=2 and raise a NotImplementedError for zarr_format=3.
Its probably best that we also mark these as deprecated, encouraging folks to use array.metadata directly.
Steps to reproduce
In [14]: arr=zarr.zeros(shape=10)
In [15]: arr.compressor--------------------------------------------------------------------------AttributeErrorTraceback (mostrecentcalllast)
CellIn[15], line1---->1arr.compressorAttributeError: 'Array'objecthasnoattribute'compressor'In [16]: arr.filters--------------------------------------------------------------------------AttributeErrorTraceback (mostrecentcalllast)
CellIn[16], line1---->1arr.filtersAttributeError: 'Array'objecthasnoattribute'filters'
Additional output
No response
The text was updated successfully, but these errors were encountered:
Zarr version
3.0.0.beta
Numcodecs version
0.13
Python Version
3.11
Operating System
Mac
Installation
pip
Description
Zarr-Python 2 exposed
compressor
andfilters
as attributes on theArray
class. We should do the same for 3.0 for arrays withzarr_format=2
and raise aNotImplementedError
forzarr_format=3
.Its probably best that we also mark these as deprecated, encouraging folks to use
array.metadata
directly.Steps to reproduce
Additional output
No response
The text was updated successfully, but these errors were encountered: