libera_utils.l1a.day_window.DayBounds#
- class libera_utils.l1a.day_window.DayBounds(window_start: datetime, day_start: datetime, day_end: datetime, window_end: datetime)#
Bases:
NamedTupleEnds of a UTC day and of its buffered day window, as timezone-aware UTC datetimes.
The left buffer is
[window_start, day_start), the day core[day_start, day_end)and the right buffer[day_end, window_end).- __init__()#
Methods
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
- _field_defaults = {}#
- _fields = ('window_start', 'day_start', 'day_end', 'window_end')#
- count(value, /)#
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)#
Return first index of value.
Raises ValueError if the value is not present.