threeML.utils.spectrum.binned_spectrum_set module

class threeML.utils.spectrum.binned_spectrum_set.BinnedSpectrumSet(binned_spectrum_list, reference_time=0.0, time_intervals=None)[source]

Bases: object

property count_errors_per_bin
property counts_per_bin
property exposure_per_bin
property n_channels
property quality_per_bin
property rate_errors_per_bin
property rates_per_bin
property reference_time
sort()[source]

sort the bin spectra in place according to time :return:

property sys_errors_per_bin
property time_intervals
time_to_index(time)[source]

get the index of the input time

Parameters:

time – time to search for

Returns:

integer