diff options
Diffstat (limited to 'dpd')
-rw-r--r-- | dpd/src/Dab_Util.py | 5 |
1 files changed, 2 insertions, 3 deletions
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" |