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

Function cf_da

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

Source from the content-addressed store, hash-verified

42
43@pytest.fixture
44def 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

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…