@@ -180,7 +180,7 @@ def encode_zarr_attr_value(value):
180
180
181
181
182
182
class ZarrArrayWrapper (BackendArray ):
183
- __slots__ = ("_array" , "dtype" , "shape " , "is_coordinate " )
183
+ __slots__ = ("_array" , "dtype" , "is_coordinate " , "shape " )
184
184
185
185
def __init__ (self , zarr_array , is_coordinate : bool ):
186
186
# some callers attempt to evaluate an array if an `array` property exists on the object.
@@ -212,6 +212,7 @@ def _vindex(self, key):
212
212
213
213
def _getitem (self , key ):
214
214
from zarr .core .buffer .cpu import buffer_prototype
215
+
215
216
if self .is_coordinate :
216
217
prototype = buffer_prototype
217
218
else :
@@ -816,7 +817,9 @@ def ds(self):
816
817
def open_store_variable (self , name ):
817
818
zarr_array = self .members [name ]
818
819
is_coordinate = name in zarr_array .metadata .dimension_names
819
- data = indexing .LazilyIndexedArray (ZarrArrayWrapper (zarr_array , is_coordinate = is_coordinate ))
820
+ data = indexing .LazilyIndexedArray (
821
+ ZarrArrayWrapper (zarr_array , is_coordinate = is_coordinate )
822
+ )
820
823
try_nczarr = self ._mode == "r"
821
824
dimensions , attributes = _get_zarr_dims_and_attrs (
822
825
zarr_array , DIMENSION_KEY , try_nczarr
0 commit comments