MCPcopy Create free account
hub / github.com/pydata/xarray / _assert_not_chunked_indexer

Function _assert_not_chunked_indexer

xarray/core/indexing.py:1812–1819  ·  view source on GitHub ↗
(idxr: tuple[Any, ...])

Source from the content-addressed store, hash-verified

1810
1811
1812def _assert_not_chunked_indexer(idxr: tuple[Any, ...]) -> None:
1813 if any(is_chunked_array(i) for i in idxr):
1814 raise ValueError(
1815 "Cannot index with a chunked array indexer. "
1816 "Please chunk the array you are indexing first, "
1817 "and drop any indexed dimension coordinate variables. "
1818 "Alternatively, call `.compute()` on any chunked arrays in the indexer."
1819 )
1820
1821
1822class DaskIndexingAdapter(IndexingAdapter):

Callers 2

_vindex_getMethod · 0.85
_vindex_getMethod · 0.85

Calls 1

is_chunked_arrayFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…