From 691591cd7e14e4ed576675b178917f3ae7fe5863 Mon Sep 17 00:00:00 2001 From: andreas128 Date: Fri, 8 Sep 2017 12:08:16 +0200 Subject: Add check pottling flag --- dpd/src/Dab_Util.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dpd') diff --git a/dpd/src/Dab_Util.py b/dpd/src/Dab_Util.py index a7403a3..e3dbfe3 100644 --- a/dpd/src/Dab_Util.py +++ b/dpd/src/Dab_Util.py @@ -163,10 +163,9 @@ class Dab_Util: fig.savefig(fig_path) fig.clf() - sig_rx = sa.subsample_align(sig_rx, sig_tx) - if logging.getLogger().getEffectiveLevel() == logging.DEBUG: + if logging.getLogger().getEffectiveLevel() == logging.DEBUG and self.plot: dt = datetime.datetime.now().isoformat() fig_path = logging_path + "/" + dt + "_sync_subsample_aligned.svg" @@ -190,7 +189,7 @@ class Dab_Util: sig_rx = pa.phase_align(sig_rx, sig_tx) - if logging.getLogger().getEffectiveLevel() == logging.DEBUG: + if logging.getLogger().getEffectiveLevel() == logging.DEBUG and self.plot: dt = datetime.datetime.now().isoformat() fig_path = logging_path + "/" + dt + "_sync_phase_aligned.svg" -- cgit v1.2.3