diff options
author | andreas128 <Andreas> | 2017-09-29 18:50:41 +0200 |
---|---|---|
committer | andreas128 <Andreas> | 2017-09-29 18:50:41 +0200 |
commit | 5e3ca125bfc56d31b9c9ef819eab9171b73b7333 (patch) | |
tree | 297d400f754742faf6bfc4fc7eff9858163c845c /dpd/src/Measure.py | |
parent | 64e0193824262e93e7cd67bb8c3af68d278f990c (diff) | |
download | dabmod-5e3ca125bfc56d31b9c9ef819eab9171b73b7333.tar.gz dabmod-5e3ca125bfc56d31b9c9ef819eab9171b73b7333.tar.bz2 dabmod-5e3ca125bfc56d31b9c9ef819eab9171b73b7333.zip |
Cleanup
Diffstat (limited to 'dpd/src/Measure.py')
-rw-r--r-- | dpd/src/Measure.py | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/dpd/src/Measure.py b/dpd/src/Measure.py index 7a9246c..d485a86 100644 --- a/dpd/src/Measure.py +++ b/dpd/src/Measure.py @@ -6,14 +6,11 @@ # http://www.opendigitalradio.org # Licence: The MIT License, see notice at the end of this file -import sys import socket import struct import numpy as np -import logging import src.Dab_Util as DU import os -import datetime import logging logging_path = os.path.dirname(logging.getLoggerClass().root.handlers[0].baseFilename) @@ -78,15 +75,15 @@ class Measure: rxframe = np.array([], dtype=np.complex64) if logging.getLogger().getEffectiveLevel() == logging.DEBUG: - logging.debug("txframe: min %f, max %f, median %f" % - (np.min(np.abs(txframe)), - np.max(np.abs(txframe)), - np.median(np.abs(txframe)))) - - logging.debug("rxframe: min %f, max %f, median %f" % - (np.min(np.abs(rxframe)), - np.max(np.abs(rxframe)), - np.median(np.abs(rxframe)))) + logging.debug('txframe: min {}, max {}, median {}'.format( + np.min(np.abs(txframe)), + np.max(np.abs(txframe)), + np.median(np.abs(txframe)))) + + logging.debug('rxframe: min {}, max {}, median {}'.format( + np.min(np.abs(rxframe)), + np.max(np.abs(rxframe)), + np.median(np.abs(rxframe)))) logging.debug("Disconnecting") s.close() |