Skip to content

Commit

Permalink
Refs #11. fixed a bug in mp.forward that causes weird I(E=0)
Browse files Browse the repository at this point in the history
  • Loading branch information
yxqd committed May 11, 2016
1 parent aaec434 commit 99f16d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multiphonon/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def computeA1E(E,g, beta, dE):
t = g/(E*g0)*t
z = zero_ind
# remove NaN
t[z] = 2.0*( t[z+1] + ( t[z+1] - t[z+2] ) ) # XXX: why 2.0* ?
t[z] = t[z+1] + ( t[z+1] - t[z+2] )
# XXX: normalize?
# t /= t.sum()
return E, t
Expand Down

0 comments on commit 99f16d9

Please sign in to comment.