From 91512b66c861d2d73d6c5982c253f6e9d9afcb79 Mon Sep 17 00:00:00 2001 From: andreas128 Date: Fri, 1 Sep 2017 16:40:23 +0200 Subject: Add debug logging --- dpd/src/Dab_Util.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'dpd') 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:] -- cgit v1.2.3