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

Function test_interpolate_unsorted_index_raises

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

Source from the content-addressed store, hash-verified

202
203@requires_scipy
204def test_interpolate_unsorted_index_raises():
205 vals = np.array([1, 2, 3], dtype=np.float64)
206 expected = xr.DataArray(vals, dims="x", coords={"x": [2, 1, 3]})
207 with pytest.raises(ValueError, match=r"Index 'x' must be monotonically increasing"):
208 expected.interpolate_na(dim="x", method="index") # type: ignore[arg-type]
209
210
211def test_interpolate_no_dim_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…