From 5daa78a0630c865519e557fde5aed57dcdee4aea Mon Sep 17 00:00:00 2001 From: John Glover Date: Fri, 24 Dec 2010 19:08:42 +0000 Subject: Fixed a bug in converting SMS peak amplitudes from DB to linear --- tests/sms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/sms.py b/tests/sms.py index a1b8fa9..a5fb702 100644 --- a/tests/sms.py +++ b/tests/sms.py @@ -502,7 +502,7 @@ class TestSimplSMS(object): if simplsms_amps[i]: p = simpl.Peak() # convert amplitude back to linear - p.amplitude = 10**(simplsms_amps[i]/20.0) + p.amplitude = simplsms_amps[i] p.frequency = simplsms_freqs[i] p.phase = simplsms_phases[i] frame_peaks.append(p) -- cgit v1.2.3