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

Function test_ceil

xarray/tests/test_cftimeindex.py:1347–1356  ·  view source on GitHub ↗
(rounding_index, date_type)

Source from the content-addressed store, hash-verified

1345
1346@requires_cftime
1347def test_ceil(rounding_index, date_type):
1348 result = rounding_index.ceil("s")
1349 expected = xr.CFTimeIndex(
1350 [
1351 date_type(1, 1, 1, 2, 0, 0, 0),
1352 date_type(1, 1, 1, 3, 0, 2, 0),
1353 date_type(1, 1, 1, 7, 0, 7, 0),
1354 ]
1355 )
1356 assert result.equals(expected)
1357
1358
1359@requires_cftime

Callers

nothing calls this directly

Calls 3

date_typeFunction · 0.85
ceilMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…