Skip to content

Commit d35bd90

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/1bb867d573390509dbc0379f0fd318a6985dab45/xarray/core/indexing.py#L514
1 parent f3df115 commit d35bd90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cupy_xarray/kvikio.py

Lines changed: 1 addition & 1 deletion
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)