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

Function test_interpolate_kwargs

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

Source from the content-addressed store, hash-verified

251
252@requires_scipy
253def test_interpolate_kwargs():
254 da = xr.DataArray(np.array([4, 5, np.nan], dtype=np.float64), dims="x")
255 expected = xr.DataArray(np.array([4, 5, 6], dtype=np.float64), dims="x")
256 actual = da.interpolate_na(dim="x", fill_value="extrapolate")
257 assert_equal(actual, expected)
258
259 expected = xr.DataArray(np.array([4, 5, -999], dtype=np.float64), dims="x")
260 actual = da.interpolate_na(dim="x", fill_value=-999)
261 assert_equal(actual, expected)
262
263
264def test_interpolate_keep_attrs():

Callers

nothing calls this directly

Calls 2

interpolate_naMethod · 0.95
assert_equalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…