From 1ece49f339453d45c614efa450f49348ff8f9372 Mon Sep 17 00:00:00 2001 From: John Glover Date: Sun, 8 Jul 2012 18:47:42 +0200 Subject: [peak_detection] Bug fix: add peaks to frame object in find_peaks_in_frame instead of in find_peaks. Set SMSAnalysisParams.iSizeSound to be the hop size, so some value is set when used in real-time. --- tests/test_peak_detection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_peak_detection.py b/tests/test_peak_detection.py index 84505b7..f339818 100644 --- a/tests/test_peak_detection.py +++ b/tests/test_peak_detection.py @@ -99,6 +99,6 @@ class TestSMSPeakDetection(object): assert len(sms_frames) == len(frames) for frame in frames: - assert frame.num_peaks <= max_peaks + assert frame.num_peaks <= max_peaks, frame.num_peaks max_amp = max([p.amplitude for p in frame.peaks]) assert max_amp -- cgit v1.2.3