threeML.utils.time_interval module¶
- class threeML.utils.time_interval.TimeInterval(start: float, stop: float, swap_if_inverted: bool = False)[source]¶
Bases:
threeML.utils.interval.Interval
- property duration¶
- property half_time¶
- property start_time¶
- property stop_time¶
- class threeML.utils.time_interval.TimeIntervalSet(list_of_intervals=())[source]¶
Bases:
threeML.utils.interval.IntervalSet
A set of time intervals
- INTERVAL_TYPE¶
- property absolute_start_time¶
the minimum of the start times :return:
- property absolute_stop_time¶
the maximum of the stop times :return:
- property start_times¶
Return the starts fo the set
- Returns
list of start times
- property stop_times¶
Return the stops of the set
- Returns
- property time_edges¶
return an array of time edges if contiguous :return: