SpectrumEnergyGroup¶
-
class
gammapy.spectrum.SpectrumEnergyGroup(energy_group_idx, bin_idx_min, bin_idx_max, bin_type, energy_min, energy_max)[source]¶ Bases:
objectSpectrum energy group.
Represents a consecutive range of bin indices (both ends inclusive).
Attributes Summary
bin_idx_listList of bin indices in the group. bin_idx_rangeRange of bin indices (both sides inclusive). energy_rangeEnergy range. valid_bin_typesValid values for bin_typesattribute.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_typesattribute.
Methods Documentation
-
to_dict()[source]¶ Data as
OrderedDict.
-