threeML.utils.time_series.event_list module
- class threeML.utils.time_series.event_list.EventList(arrival_times, measurement, n_channels, start_time=None, stop_time=None, native_quality=None, first_channel=0, ra=None, dec=None, mission=None, instrument=None, verbose=True, edges=None)[source]
Bases:
TimeSeries
- property arrival_times
- bin_by_constant(start, stop, dt=1)[source]
Interface to the temporal binner’s constant binning mode
- Parameters:
start – start time of the bins
stop – stop time of the bins
dt – temporal spacing of the bins
- Returns:
- bin_by_custom(start, stop)[source]
Interface to temporal binner’s custom bin mode
- Parameters:
start – start times of the bins
stop – stop times of the bins
- Returns:
- bin_by_significance(start, stop, sigma, mask=None, min_counts=1)[source]
Interface to the temporal binner’s significance binning model
- param start:
start of the interval to bin on
- param stop:
stop of the interval ot bin on
- param sigma:
sigma-level of the bins
- param mask:
(bool) use the energy mask to decide on ,significance
- param min_counts:
minimum number of counts per bin
- return:
- property bins
- counts_over_interval(start, stop)[source]
return the number of counts in the selected interval :param start: start of interval :param stop: stop of interval :return:
- property measurement
- property n_events
- class threeML.utils.time_series.event_list.EventListWithDeadTime(arrival_times, measurement, n_channels, start_time=None, stop_time=None, dead_time=None, first_channel=0, quality=None, ra=None, dec=None, mission=None, instrument=None, verbose=True, edges=None)[source]
Bases:
EventList
- class threeML.utils.time_series.event_list.EventListWithDeadTimeFraction(arrival_times, measurement, n_channels, start_time=None, stop_time=None, dead_time_fraction=None, first_channel=0, quality=None, ra=None, dec=None, mission=None, instrument=None, verbose=True, edges=None)[source]
Bases:
EventList
- class threeML.utils.time_series.event_list.EventListWithLiveTime(arrival_times, measurement, n_channels, live_time, live_time_starts, live_time_stops, start_time=None, stop_time=None, quality=None, first_channel=0, rsp_file=None, ra=None, dec=None, mission=None, instrument=None, verbose=True, edges=None)[source]
Bases:
EventList