From c4ada65811af97677421589c54935f75d7cb5209 Mon Sep 17 00:00:00 2001 From: dcherian Date: Thu, 2 Nov 2023 21:11:08 -0600 Subject: [PATCH] Generalize explicit_indexing_adapter --- xarray/core/indexing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xarray/core/indexing.py b/xarray/core/indexing.py index 6e6ce01a41f..8f7fb3504f3 100644 --- a/xarray/core/indexing.py +++ b/xarray/core/indexing.py @@ -860,8 +860,8 @@ def explicit_indexing_adapter( raw_key, numpy_indices = decompose_indexer(key, shape, indexing_support) result = raw_indexing_method(raw_key.tuple) if numpy_indices.tuple: - # index the loaded np.ndarray - result = NumpyIndexingAdapter(result)[numpy_indices] + # index the loaded ndarray + result = as_indexable(result)[numpy_indices] return result