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

Function test_scipy_methods_function

xarray/tests/test_missing.py:143–152  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

141@requires_scipy
142@pytest.mark.parametrize("method", ["barycentric", "krogh", "pchip", "spline", "akima"])
143def test_scipy_methods_function(method) -> None:
144 # Note: Pandas does some wacky things with these methods and the full
145 # integration tests won't work.
146 da, _ = make_interpolate_example_data((25, 25), 0.4, non_uniform=True)
147 if method == "spline":
148 with pytest.warns(PendingDeprecationWarning):
149 actual = da.interpolate_na(method=method, dim="time")
150 else:
151 actual = da.interpolate_na(method=method, dim="time")
152 assert (da.count("time") <= actual.count("time")).all()
153
154
155@requires_scipy

Callers

nothing calls this directly

Calls 4

interpolate_naMethod · 0.45
allMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…