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

Function test_interpolate_invalid_interpolator_raises

xarray/tests/test_missing.py:217–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215
216
217def test_interpolate_invalid_interpolator_raises():
218 da = xr.DataArray(np.array([1, 2, np.nan, 5], dtype=np.float64), dims="x")
219 with pytest.raises(ValueError, match=r"not a valid"):
220 da.interpolate_na(dim="x", method="foo") # type: ignore[arg-type]
221
222
223def test_interpolate_duplicate_values_raises():

Callers

nothing calls this directly

Calls 1

interpolate_naMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…