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

Function test_interpolate_limits

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

Source from the content-addressed store, hash-verified

314
315@requires_bottleneck
316def test_interpolate_limits():
317 da = xr.DataArray(
318 np.array([1, 2, np.nan, np.nan, np.nan, 6], dtype=np.float64), dims="x"
319 )
320
321 actual = da.interpolate_na(dim="x", limit=None)
322 assert actual.isnull().sum() == 0
323
324 actual = da.interpolate_na(dim="x", limit=2)
325 expected = xr.DataArray(
326 np.array([1, 2, 3, 4, np.nan, 6], dtype=np.float64), dims="x"
327 )
328
329 assert_equal(actual, expected)
330
331
332@requires_scipy

Callers

nothing calls this directly

Calls 4

interpolate_naMethod · 0.95
assert_equalFunction · 0.90
sumMethod · 0.45
isnullMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…