Skip to content

Commit

Permalink
10.** not exp
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein committed May 9, 2020
1 parent 128f0b9 commit 0ce98bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flarestack/core/energy_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def piecewise_integrate(f, lower, upper):
diff_sum = []

for i, log_e in enumerate(e_range[:-1]):
e0 = np.exp(log_e)
e1 = np.exp(e_range[i + 1])
e0 = 10.**(log_e)
e1 = 10.**(e_range[i + 1])
diff_sum.append(0.5 * (e1 - e0) * (f(e0) + f(e1)))

return diff_sum, e_range
Expand Down

0 comments on commit 0ce98bf

Please sign in to comment.