diff --git a/irf/sensitivity.py b/irf/sensitivity.py index abddafe..f6df6a4 100644 --- a/irf/sensitivity.py +++ b/irf/sensitivity.py @@ -130,7 +130,12 @@ def select_off(df): if 'weight' not in df.columns: df['weight'] = 1 - bin_edges = np.logspace(np.log10(e_min / u.GeV), np.log10(e_max / u.GeV), n_bins + 1) + bin_edges = np.logspace( + np.log10(e_min / u.GeV).to_value(u.dimensionless_unscaled), + np.log10(e_max / u.GeV).to_value(u.dimensionless_unscaled), + n_bins + 1 + ) + bin_edges = np.append(-np.inf, np.append(bin_edges, np.inf)) bin_id = np.arange(n_bins + 2) + 1 diff --git a/setup.py b/setup.py index 3da5f72..7db35a2 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='irf', - version='0.5.2', + version='0.5.3', description='Functions to do instrument response functions for FACT', url='http://github.com/fact-project/irf', author='Kai Brügge, Maximilian Nöthe',