File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,12 @@ def select_off(df):
130
130
if 'weight' not in df .columns :
131
131
df ['weight' ] = 1
132
132
133
- bin_edges = np .logspace (np .log10 (e_min / u .GeV ), np .log10 (e_max / u .GeV ), n_bins + 1 )
133
+ 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
+
134
139
bin_edges = np .append (- np .inf , np .append (bin_edges , np .inf ))
135
140
bin_id = np .arange (n_bins + 2 ) + 1
136
141
Original file line number Diff line number Diff line change 3
3
4
4
setup (
5
5
name = 'irf' ,
6
- version = '0.5.2 ' ,
6
+ version = '0.5.3 ' ,
7
7
description = 'Functions to do instrument response functions for FACT' ,
8
8
url = 'http://github.com/fact-project/irf' ,
9
9
author = 'Kai Brügge, Maximilian Nöthe' ,
You can’t perform that action at this time.
0 commit comments