()
| 736 | |
| 737 | @requires_scipy |
| 738 | def test_datetime_single_string() -> None: |
| 739 | da = xr.DataArray( |
| 740 | np.arange(24), |
| 741 | dims="time", |
| 742 | coords={"time": pd.date_range("2000-01-01", periods=24, unit="ns")}, |
| 743 | ) |
| 744 | actual = da.interp(time="2000-01-01T12:00") |
| 745 | expected = xr.DataArray(0.5) |
| 746 | |
| 747 | assert_allclose(actual.drop_vars("time"), expected) |
| 748 | |
| 749 | |
| 750 | @requires_cftime |
nothing calls this directly
no test coverage detected
searching dependent graphs…