()
| 228 | |
| 229 | |
| 230 | def test_interpolate_multiindex_raises(): |
| 231 | data = np.random.randn(2, 3) |
| 232 | data[1, 1] = np.nan |
| 233 | da = xr.DataArray(data, coords=[("x", ["a", "b"]), ("y", [0, 1, 2])]) |
| 234 | das = da.stack(z=("x", "y")) |
| 235 | with pytest.raises(TypeError, match=r"Index 'z' must be castable to float64"): |
| 236 | das.interpolate_na(dim="z") |
| 237 | |
| 238 | |
| 239 | def test_interpolate_2d_coord_raises(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…