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

Method test_reduce_argmin

xarray/tests/test_dataset.py:6343–6351  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6341
6342 @pytest.mark.filterwarnings("ignore:Once the behaviour of DataArray:FutureWarning")
6343 def test_reduce_argmin(self) -> None:
6344 # regression test for #205
6345 ds = Dataset({"a": ("x", [0, 1])})
6346 expected = Dataset({"a": ([], 0)})
6347 actual = ds.argmin()
6348 assert_identical(expected, actual)
6349
6350 actual = ds.argmin("x")
6351 assert_identical(expected, actual)
6352
6353 def test_reduce_scalars(self) -> None:
6354 ds = Dataset({"x": ("a", [2, 2]), "y": 2, "z": ("b", [2])})

Callers

nothing calls this directly

Calls 3

argminMethod · 0.95
DatasetClass · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected