SpectrumEnergyGroup

class gammapy.spectrum.SpectrumEnergyGroup(energy_group_idx, bin_idx_min, bin_idx_max, bin_type, energy_min, energy_max)[source]

Bases: object

Spectrum energy group.

Represents a consecutive range of bin indices (both ends inclusive).

Attributes Summary

bin_idx_list List of bin indices in the group.
bin_idx_range Range of bin indices (both sides inclusive).
energy_range Energy range.
valid_bin_types Valid values for bin_types attribute.

Methods Summary

to_dict() Data as OrderedDict.

Attributes Documentation

bin_idx_list

List of bin indices in the group.

bin_idx_range

Range of bin indices (both sides inclusive).

energy_range

Energy range.

valid_bin_types = ['normal', 'underflow', 'overflow']

Valid values for bin_types attribute.

Methods Documentation

to_dict()[source]

Data as OrderedDict.