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

Method isel

xarray/tests/indexes.py:68–73  ·  view source on GitHub ↗
(self, indexers: Mapping[Any, int | slice | np.ndarray | Variable])

Source from the content-addressed store, hash-verified

66 return cls(x=newx, y=newy)
67
68 def isel(self, indexers: Mapping[Any, int | slice | np.ndarray | Variable]) -> Self:
69 newx = self.x.isel({"x": indexers.get("x", slice(None))})
70 newy = self.y.isel({"y": indexers.get("y", slice(None))})
71 assert newx is not None
72 assert newy is not None
73 return type(self)(newx, newy)

Callers 15

test_groupsMethod · 0.45
test_test_empty_cellMethod · 0.45
test_quiverMethod · 0.45
test_streamlineMethod · 0.45
test_unify_chunksFunction · 0.45
series_reduceFunction · 0.45
test_argmin_maxFunction · 0.45

Calls 2

typeFunction · 0.85
getMethod · 0.45

Tested by 15

test_groupsMethod · 0.36
test_test_empty_cellMethod · 0.36
test_quiverMethod · 0.36
test_streamlineMethod · 0.36
test_unify_chunksFunction · 0.36
series_reduceFunction · 0.36
test_argmin_maxFunction · 0.36