We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8a3d23 commit 52bdb05Copy full SHA for 52bdb05
fact_funfolding/binning.py
@@ -4,8 +4,8 @@
4
5
def logspace_binning(e_low, e_high, e_ref, n_bins):
6
bins = np.logspace(
7
- np.log10(e_low / e_ref).to(u.dimensionless_unscaled),
8
- np.log10(e_high / e_ref).to(u.dimensionless_unscaled),
+ np.log10(e_low / e_ref).to_value(u.dimensionless_unscaled),
+ np.log10(e_high / e_ref).to_value(u.dimensionless_unscaled),
9
n_bins + 1,
10
)
11
return np.append(-np.inf, np.append(bins, np.inf)) * e_ref
0 commit comments