summaryrefslogtreecommitdiffstats
path: root/dpd/src/Dab_Util.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-09-14 16:30:52 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-09-14 16:30:52 +0200
commitef78d66f6b3afc47121f7352d961943fa29d1518 (patch)
treef3d02bbef9e60d4d4ed89527e84ae802857acfdc /dpd/src/Dab_Util.py
parent1ca5368f547c429bf0d86dac78162310e1d2b032 (diff)
parentbf32d4e1efb87eb7a51207281f2565ee54e1aee2 (diff)
downloaddabmod-ef78d66f6b3afc47121f7352d961943fa29d1518.tar.gz
dabmod-ef78d66f6b3afc47121f7352d961943fa29d1518.tar.bz2
dabmod-ef78d66f6b3afc47121f7352d961943fa29d1518.zip
Merge LUT into 'next_memless'
Diffstat (limited to 'dpd/src/Dab_Util.py')
-rw-r--r--dpd/src/Dab_Util.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/dpd/src/Dab_Util.py b/dpd/src/Dab_Util.py
index e3dbfe3..37be5db 100644
--- a/dpd/src/Dab_Util.py
+++ b/dpd/src/Dab_Util.py
@@ -49,7 +49,7 @@ class Dab_Util:
plt.plot(c, label="corr")
plt.legend()
plt.savefig(corr_path)
- plt.clf()
+ plt.close()
return np.argmax(c) - off + 1
@@ -118,7 +118,7 @@ class Dab_Util:
fig.tight_layout()
fig.savefig(fig_path)
- fig.clf()
+ plt.close(fig)
off_meas = self.lag_upsampling(sig_rx, sig_tx, n_up=1)
off = int(abs(off_meas))
@@ -161,7 +161,7 @@ class Dab_Util:
fig.tight_layout()
fig.savefig(fig_path)
- fig.clf()
+ plt.close(fig)
sig_rx = sa.subsample_align(sig_rx, sig_tx)
@@ -185,7 +185,7 @@ class Dab_Util:
fig.tight_layout()
fig.savefig(fig_path)
- fig.clf()
+ plt.close(fig)
sig_rx = pa.phase_align(sig_rx, sig_tx)
@@ -209,7 +209,7 @@ class Dab_Util:
fig.tight_layout()
fig.savefig(fig_path)
- fig.clf()
+ plt.close(fig)
logging.debug("Sig1_cut: %d %s, Sig2_cut: %d %s, off: %d" % (len(sig_tx), sig_tx.dtype, len(sig_rx), sig_rx.dtype, off))
return sig_tx, sig_rx