Skip to content

Commit

Permalink
Merge pull request #50 from MWSammons/patch-1
Browse files Browse the repository at this point in the history
Updated differential burst fractions in energetics.py to be 0.0 below…
  • Loading branch information
profxj authored May 30, 2024
2 parents 9616401 + 493ce3e commit 4dfc26f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zdm/energetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def vector_diff_power_law(Eth,*params):

low=np.where(Eth < Emin)[0]
if len(low) > 0:
result[low]=1. # This was 0 and I think it was wrong -- JXP
result[low]=0.
high=np.where(Eth > Emax)[0]
if len(high) > 0:
result[high]=0.
Expand Down Expand Up @@ -346,6 +346,6 @@ def vector_diff_gamma(Eth,*params):
result= (Eth/Emax)**(gamma-1) * np.exp(-Eth/Emax) / norm

low= Eth < Emin
result[low]=1. # This was 0 and I think it was wrong
result[low]=0.

return result

0 comments on commit 4dfc26f

Please sign in to comment.