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

Function test_interpolate

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

Source from the content-addressed store, hash-verified

273
274
275def test_interpolate():
276 vals = np.array([1, 2, 3, 4, 5, 6], dtype=np.float64)
277 expected = xr.DataArray(vals, dims="x")
278 mvals = vals.copy()
279 mvals[2] = np.nan
280 missing = xr.DataArray(mvals, dims="x")
281
282 actual = missing.interpolate_na(dim="x")
283
284 assert_equal(actual, expected)
285
286
287@requires_scipy

Callers

nothing calls this directly

Calls 3

interpolate_naMethod · 0.95
assert_equalFunction · 0.90
copyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…