From 3b4b64253d4a054ba6715e5be0044b865be3cce6 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 3 Mar 2015 18:15:32 +0200 Subject: [PATCH] detect: fix detection logging --- amodem/detect.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amodem/detect.py b/amodem/detect.py index 9fb4ffc..e8dba4d 100644 --- a/amodem/detect.py +++ b/amodem/detect.py @@ -92,7 +92,7 @@ class Detector(object): coeffs.append(c) index = np.argmax(coeffs) - log.debug('Starting coherence: %.3f%%', coeffs[index] * 100) + log.info('Carrier coherence: %.3f%%', coeffs[index] * 100) offset = index + len(zeroes) return offset @@ -103,7 +103,7 @@ class Detector(object): symbols = np.array(symbols[skip:-skip]) amplitude = np.mean(np.abs(symbols)) - log.debug('Carrier symbols amplitude : %.3f', amplitude) + log.info('Carrier symbols amplitude : %.3f', amplitude) phase = np.unwrap(np.angle(symbols)) / (2 * np.pi) indices = np.arange(len(phase)) @@ -113,6 +113,6 @@ class Detector(object): self.plt.plot(indices, a * indices + b) freq_err = a / (self.Tsym * self.freq) - log.debug('Frequency error: %.3f ppm', freq_err * 1e6) + log.info('Frequency error: %.3f ppm', freq_err * 1e6) self.plt.title('Frequency drift: {0:.3f} ppm'.format(freq_err * 1e6)) return amplitude, freq_err