()
| 42 | |
| 43 | @pytest.fixture |
| 44 | def cf_da(): |
| 45 | def _cf_da(calendar, freq="1D"): |
| 46 | times = xr.date_range( |
| 47 | start="1970-01-01", |
| 48 | freq=freq, |
| 49 | periods=10, |
| 50 | calendar=calendar, |
| 51 | use_cftime=True, |
| 52 | ) |
| 53 | values = np.arange(10) |
| 54 | return xr.DataArray(values, dims=("time",), coords={"time": times}) |
| 55 | |
| 56 | return _cf_da |
| 57 | |
| 58 | |
| 59 | @pytest.fixture |
no outgoing calls
no test coverage detected
searching dependent graphs…