resample_energy_edges#

gammapy.estimators.utils.resample_energy_edges(dataset, conditions={})[source]#

Return energy edges that satisfy given condition on the per bin statistics.

Parameters
datasetSpectrumDataset or SpectrumDatasetOnOff

The input dataset.

conditionsdict

Keyword arguments containing the per-bin conditions used to resample the axis. Available options are: ‘counts_min’, ‘background_min’, ‘excess_min’, ‘sqrt_ts_min’, ‘npred_min’, ‘npred_background_min’, ‘npred_signal_min’. Default is {}.

Returns
energy_edgeslist of Quantity

Energy edges for the resampled energy axis.