aboutsummaryrefslogtreecommitdiffstats
path: root/dpd/src
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-01 16:40:23 +0200
committerandreas128 <Andreas>2017-09-01 17:05:08 +0200
commit91512b66c861d2d73d6c5982c253f6e9d9afcb79 (patch)
tree6cea2d50194a5ec009d0800d3dd8c4243167a2dc /dpd/src
parentd18dcae4e327ffa4c161d45ae50e08cc76789eab (diff)
downloaddabmod-91512b66c861d2d73d6c5982c253f6e9d9afcb79.tar.gz
dabmod-91512b66c861d2d73d6c5982c253f6e9d9afcb79.tar.bz2
dabmod-91512b66c861d2d73d6c5982c253f6e9d9afcb79.zip
Add debug logging
Diffstat (limited to 'dpd/src')
-rw-r--r--dpd/src/Dab_Util.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/dpd/src/Dab_Util.py b/dpd/src/Dab_Util.py
index 31366f5..b0b3ce3 100644
--- a/dpd/src/Dab_Util.py
+++ b/dpd/src/Dab_Util.py
@@ -118,10 +118,16 @@ class Dab_Util:
fig.savefig(fig_path)
fig.clf()
- logging.debug("Sig1_orig: %d %s, Sig2_orig: %d %s" % (len(sig_tx), sig_tx.dtype, len(sig_rx), sig_rx.dtype))
off_meas = self.lag_upsampling(sig_rx, sig_tx, n_up=1)
off = int(abs(off_meas))
+ logging.debug("sig_tx_orig: {} {}, sig_rx_orig: {} {}, offset {}".format(
+ len(sig_tx),
+ sig_tx.dtype,
+ len(sig_rx),
+ sig_rx.dtype,
+ off_meas))
+
if off_meas > 0:
sig_tx = sig_tx[:-off]
sig_rx = sig_rx[off:]