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

Function test_interpolate_multiindex_raises

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

Source from the content-addressed store, hash-verified

228
229
230def 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
239def test_interpolate_2d_coord_raises():

Callers

nothing calls this directly

Calls 2

stackMethod · 0.95
interpolate_naMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…