Skip to content

Commit 52bdb05

Browse files
committed
Fix logspace for astropy 4
1 parent a8a3d23 commit 52bdb05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fact_funfolding/binning.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
def logspace_binning(e_low, e_high, e_ref, n_bins):
66
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),
7+
np.log10(e_low / e_ref).to_value(u.dimensionless_unscaled),
8+
np.log10(e_high / e_ref).to_value(u.dimensionless_unscaled),
99
n_bins + 1,
1010
)
1111
return np.append(-np.inf, np.append(bins, np.inf)) * e_ref

0 commit comments

Comments
 (0)