MCPcopy
hub / github.com/pydata/xarray / NdArrayLikeIndexingAdapter

Class NdArrayLikeIndexingAdapter

xarray/core/indexing.py:1749–1758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1747
1748
1749class NdArrayLikeIndexingAdapter(NumpyIndexingAdapter):
1750 __slots__ = ("array",)
1751
1752 def __init__(self, array):
1753 if not hasattr(array, "__array_function__"):
1754 raise TypeError(
1755 "NdArrayLikeIndexingAdapter must wrap an object that "
1756 "implements the __array_function__ protocol"
1757 )
1758 self.array = array
1759
1760
1761class ArrayApiIndexingAdapter(IndexingAdapter):

Callers 1

as_indexableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…