()
| 262 | |
| 263 | |
| 264 | def test_interpolate_keep_attrs(): |
| 265 | vals = np.array([1, 2, 3, 4, 5, 6], dtype=np.float64) |
| 266 | mvals = vals.copy() |
| 267 | mvals[2] = np.nan |
| 268 | missing = xr.DataArray(mvals, dims="x") |
| 269 | missing.attrs = {"test": "value"} |
| 270 | |
| 271 | actual = missing.interpolate_na(dim="x", keep_attrs=True) |
| 272 | assert actual.attrs == {"test": "value"} |
| 273 | |
| 274 | |
| 275 | def test_interpolate(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…