Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4e1857a

Browse files
committedDec 14, 2024··
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

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)
Please sign in to comment.