Skip to content

Commit 4e1857a

Browse files
committed
Use get_duck_array instead of get_array
Fix `TypeError: Implicit conversion to a NumPy array is not allowed. Please use `.get()` to construct a NumPy array explicitly` on https://github.com/pydata/xarray/blob/v2024.11.0/xarray/core/indexing.py#L578
1 parent f3df115 commit 4e1857a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cupy_xarray/kvikio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class EagerCupyZarrArrayWrapper(ZarrArrayWrapper):
5858
def __array__(self):
5959
return self._array[:].get()
6060

61-
def get_array(self):
61+
def get_duck_array(self):
6262
# total hack: make a numpy array look like a Zarr array
6363
# this gets us through Xarray's backend layers
6464
return DummyZarrArrayWrapper(self._array[:].get())

0 commit comments

Comments
 (0)