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

alias of threeML.utils.time_interval.TimeInterval

property absolute_start_time

the minimum of the start times :return:

property absolute_stop_time

the maximum of the stop times :return:

display()[source]

Display the time intervals

Returns

None

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: