summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-08-19 17:33:59 +0200
committerandreas128 <Andreas>2017-08-19 17:33:59 +0200
commitc129deaf0947ce955b69fe40544a5408e1e2fdc7 (patch)
treef965e00609434bbc2eb8585006e737d4ace22570
parentb4d1df33b3bffd5799da5a2dbe941e784b96b9d4 (diff)
downloaddabmod-c129deaf0947ce955b69fe40544a5408e1e2fdc7.tar.gz
dabmod-c129deaf0947ce955b69fe40544a5408e1e2fdc7.tar.bz2
dabmod-c129deaf0947ce955b69fe40544a5408e1e2fdc7.zip
Remove sync plots
-rw-r--r--dpd/src/Measure.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/dpd/src/Measure.py b/dpd/src/Measure.py
index ba71917..5872bda 100644
--- a/dpd/src/Measure.py
+++ b/dpd/src/Measure.py
@@ -110,47 +110,12 @@ class Measure:
np.median(np.abs(rxframe)),
rxframe_path))
- dt = datetime.datetime.now().isoformat()
- tx_rx_frame_path = ('/tmp/tx_rx_sync0_' + dt + '.pdf')
- plt.plot(np.abs(rxframe[:128]), label="rxframe")
- plt.plot(np.abs(txframe[:128]), label="txframe")
- plt.xlabel("Samples")
- plt.ylabel("Real Part")
- plt.legend()
- plt.savefig(tx_rx_frame_path)
- plt.clf()
-
logging.debug("Disconnecting")
s.close()
du = DU.Dab_Util(self.samplerate)
txframe_aligned, rxframe_aligned = du.subsample_align(txframe, rxframe)
- if logging.getLogger().getEffectiveLevel() == logging.DEBUG:
- tx_rx_frame_path = ('/tmp/tx_rx_sync1_' +
- datetime.datetime.now().isoformat() +
- '.pdf')
- plt.subplot(311)
- plt.plot(np.abs(rxframe_aligned[:128]), label="rxframe")
- plt.plot(np.abs(txframe_aligned[:128]), label="txframe")
- plt.xlabel("Samples")
- plt.ylabel("Absolute Value")
- plt.legend()
- plt.subplot(312)
- plt.plot(np.real(rxframe_aligned[:128]), label="rxframe_real", alpha=0.5, linestyle=":")
- plt.plot(np.real(txframe_aligned[:128]), label="txframe_real", alpha=0.5, linestyle=":")
- plt.xlabel("Samples")
- plt.ylabel("Real Part")
- plt.legend()
- plt.subplot(313)
- plt.plot(np.imag(rxframe_aligned[:128]), label="rxframe_imag", alpha=0.5, linestyle="--")
- plt.plot(np.imag(txframe_aligned[:128]), label="txframe_imag", alpha=0.5, linestyle="--")
- plt.xlabel("Samples")
- plt.ylabel("Imaginary Part")
- plt.legend()
- plt.savefig(tx_rx_frame_path)
- plt.clf()
-
logging.info(
"Measurement done, tx %d %s, rx %d %s, tx aligned %d %s, rx aligned %d %s"
% (len(txframe), txframe.dtype, len(rxframe), rxframe.dtype,