We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8c78b1f + 391cef7 commit d82a3d4Copy full SHA for d82a3d4
2 files changed
irf/sensitivity.py
@@ -130,7 +130,12 @@ def select_off(df):
130
if 'weight' not in df.columns:
131
df['weight'] = 1
132
133
- bin_edges = np.logspace(np.log10(e_min / u.GeV), np.log10(e_max / u.GeV), n_bins + 1)
+ bin_edges = np.logspace(
134
+ np.log10(e_min / u.GeV).to_value(u.dimensionless_unscaled),
135
+ np.log10(e_max / u.GeV).to_value(u.dimensionless_unscaled),
136
+ n_bins + 1
137
+ )
138
+
139
bin_edges = np.append(-np.inf, np.append(bin_edges, np.inf))
140
bin_id = np.arange(n_bins + 2) + 1
141
setup.py
@@ -3,7 +3,7 @@
3
4
setup(
5
name='irf',
6
- version='0.5.2',
+ version='0.5.3',
7
description='Functions to do instrument response functions for FACT',
8
url='http://github.com/fact-project/irf',
9
author='Kai Brügge, Maximilian Nöthe',
0 commit comments