threeML.utils.time_interval module
- class threeML.utils.time_interval.TimeInterval(start: float, stop: float, swap_if_inverted: bool = False)[source]
-
Bases:
Interval- property duration
- property half_time
- property start_time
- property stop_time
- class threeML.utils.time_interval.TimeIntervalSet(list_of_intervals=())[source]
-
Bases:
IntervalSetA set of time intervals.
- INTERVAL_TYPE
-
alias of
TimeInterval
- property absolute_start_time
-
return:
- Type:
-
The minimum of the start times
- property absolute_stop_time
-
return:
- Type:
-
The maximum of the stop times
- 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:
- Type:
-
Return an array of time edges if contiguous