From 99f16d9188661d6400033399a568f82b745a9a66 Mon Sep 17 00:00:00 2001 From: Jiao Lin Date: Wed, 11 May 2016 13:32:52 -0400 Subject: [PATCH] Refs #11. fixed a bug in mp.forward that causes weird I(E=0) --- multiphonon/forward.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multiphonon/forward.py b/multiphonon/forward.py index 1a9920c..a1f80b6 100644 --- a/multiphonon/forward.py +++ b/multiphonon/forward.py @@ -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