diff options
author | andreas128 <Andreas> | 2017-09-08 12:08:16 +0200 |
---|---|---|
committer | andreas128 <Andreas> | 2017-09-08 12:08:16 +0200 |
commit | 691591cd7e14e4ed576675b178917f3ae7fe5863 (patch) | |
tree | 73890106c646f9e1c84664249edd1e89beada643 /dpd/src | |
parent | 988e0b9472489657f86838362b176863ec42d0fd (diff) | |
download | dabmod-691591cd7e14e4ed576675b178917f3ae7fe5863.tar.gz dabmod-691591cd7e14e4ed576675b178917f3ae7fe5863.tar.bz2 dabmod-691591cd7e14e4ed576675b178917f3ae7fe5863.zip |
Add check pottling flag
Diffstat (limited to 'dpd/src')
-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" |