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

Method test_groups

xarray/tests/test_plot.py:2344–2350  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2342
2343 @pytest.mark.slow
2344 def test_groups(self) -> None:
2345 self.g.map_dataarray(xplt.imshow, "x", "y")
2346 upperleft_dict = self.g.name_dicts[0, 0]
2347 upperleft_array = self.darray.loc[upperleft_dict]
2348 z0 = self.darray.isel(z=0)
2349
2350 assert_equal(upperleft_array, z0)
2351
2352 @pytest.mark.slow
2353 def test_float_index(self) -> None:

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
map_dataarrayMethod · 0.80
iselMethod · 0.45

Tested by

no test coverage detected