MCPcopy Index your code
hub / github.com/pydata/xarray / IndexableArray

Class IndexableArray

xarray/tests/arrays.py:44–51  ·  view source on GitHub ↗

An InaccessibleArray subclass that supports indexing.

Source from the content-addressed store, hash-verified

42
43
44class IndexableArray(InaccessibleArray):
45 """An InaccessibleArray subclass that supports indexing."""
46
47 def __getitem__(self, key):
48 return type(self)(self.array[key])
49
50 def transpose(self, axes):
51 return type(self)(self.array.transpose(axes))
52
53
54class DuckArrayWrapper(utils.NDArrayMixin):

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…