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

Method test_rank_use_bottleneck

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

Source from the content-addressed store, hash-verified

6504 x.rank("invalid_dim")
6505
6506 def test_rank_use_bottleneck(self) -> None:
6507 ds = Dataset({"a": ("x", [0, np.nan, 2]), "b": ("y", [4, 6, 3, 4])})
6508 with xr.set_options(use_bottleneck=False):
6509 with pytest.raises(RuntimeError):
6510 ds.rank("x")
6511
6512 def test_count(self) -> None:
6513 ds = Dataset({"x": ("a", [np.nan, 1]), "y": 0, "z": np.nan})

Callers

nothing calls this directly

Calls 2

rankMethod · 0.95
DatasetClass · 0.90

Tested by

no test coverage detected