aboutsummaryrefslogtreecommitdiffstats
path: root/dpd
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-08 12:08:16 +0200
committerandreas128 <Andreas>2017-09-08 12:08:16 +0200
commit691591cd7e14e4ed576675b178917f3ae7fe5863 (patch)
tree73890106c646f9e1c84664249edd1e89beada643 /dpd
parent988e0b9472489657f86838362b176863ec42d0fd (diff)
downloaddabmod-691591cd7e14e4ed576675b178917f3ae7fe5863.tar.gz
dabmod-691591cd7e14e4ed576675b178917f3ae7fe5863.tar.bz2
dabmod-691591cd7e14e4ed576675b178917f3ae7fe5863.zip
Add check pottling flag
Diffstat (limited to 'dpd')
-rw-r--r--dpd/src/Dab_Util.py5
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"