1818from xarray .core .nputils import NumpyVIndexAdapter
1919from xarray .core .options import OPTIONS
2020from xarray .core .parallelcompat import get_chunked_array_type , is_chunked_array
21- from xarray .core .pycompat import array_type , integer_types , is_duck_dask_array
21+ from xarray .core .pycompat import array_type , integer_types
2222from xarray .core .types import T_Xarray
2323from xarray .core .utils import (
2424 NDArrayMixin ,
@@ -676,8 +676,8 @@ def as_indexable(array):
676676 return NumpyIndexingAdapter (array )
677677 if isinstance (array , pd .Index ):
678678 return PandasIndexingAdapter (array )
679- if is_duck_dask_array (array ):
680- return DaskIndexingAdapter (array )
679+ if is_chunked_array (array ):
680+ return ChunkedIndexingAdapter (array )
681681 if hasattr (array , "__array_function__" ):
682682 return NdArrayLikeIndexingAdapter (array )
683683 if hasattr (array , "__array_namespace__" ):
@@ -1309,7 +1309,7 @@ def __getitem__(self, key):
13091309 if isinstance (key , BasicIndexer ):
13101310 return self .array [key .tuple ]
13111311 elif isinstance (key , OuterIndexer ):
1312- # manual orthogonal indexing (implemented like DaskIndexingAdapter )
1312+ # manual orthogonal indexing (implemented like ChunkedIndexingAdapter )
13131313 key = key .tuple
13141314 value = self .array
13151315 for axis , subkey in reversed (list (enumerate (key ))):
@@ -1335,8 +1335,8 @@ def transpose(self, order):
13351335 return xp .permute_dims (self .array , order )
13361336
13371337
1338- class DaskIndexingAdapter (ExplicitlyIndexedNDArrayMixin ):
1339- """Wrap a dask array to support explicit indexing."""
1338+ class ChunkedIndexingAdapter (ExplicitlyIndexedNDArrayMixin ):
1339+ """Wrap a chunked array (e.g. a dask array) to support explicit indexing."""
13401340
13411341 __slots__ = ("array" ,)
13421342
0 commit comments