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

Method test_rank_use_bottleneck

xarray/tests/test_variable.py:2019–2023  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2017 v.rank("x")
2018
2019 def test_rank_use_bottleneck(self):
2020 v = Variable(["x"], [3.0, 1.0, np.nan, 2.0, 4.0])
2021 with set_options(use_bottleneck=False):
2022 with pytest.raises(RuntimeError):
2023 v.rank("x")
2024
2025 @requires_bottleneck
2026 def test_rank(self):

Callers

nothing calls this directly

Calls 3

rankMethod · 0.95
VariableClass · 0.90
set_optionsClass · 0.90

Tested by

no test coverage detected