Skip to content

Commit 82c7654

Browse files
committed
explicitly forbid orthogonal indexing
1 parent a8b7b46 commit 82c7654

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

xarray/backends/zarr.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,15 +238,15 @@ async def async_getitem(self, key):
238238
if isinstance(key, indexing.BasicIndexer):
239239
method = self._async_getitem
240240
elif isinstance(key, indexing.VectorizedIndexer):
241-
# TODO
242-
method = self._vindex
241+
# method = self._vindex
242+
raise NotImplementedError("async lazy vectorized indexing is not supported")
243243
elif isinstance(key, indexing.OuterIndexer):
244-
# TODO
245-
method = self._oindex
244+
# method = self._oindex
245+
raise NotImplementedError("async lazy orthogonal indexing is not supported")
246246

247247
print("did an async get")
248248
return await indexing.async_explicit_indexing_adapter(
249-
key, array.shape, indexing.IndexingSupport.VECTORIZED, method
249+
key, array.shape, indexing.IndexingSupport.BASIC, method
250250
)
251251

252252

0 commit comments

Comments
 (0)