()
| 202 | |
| 203 | @requires_scipy |
| 204 | def 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 | |
| 211 | def test_interpolate_no_dim_raises(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…