summaryrefslogtreecommitdiffstats
path: root/dpd/src/Measure.py
diff options
context:
space:
mode:
Diffstat (limited to 'dpd/src/Measure.py')
-rw-r--r--dpd/src/Measure.py24
1 files changed, 4 insertions, 20 deletions
diff --git a/dpd/src/Measure.py b/dpd/src/Measure.py
index e9493fa..ef9e290 100644
--- a/dpd/src/Measure.py
+++ b/dpd/src/Measure.py
@@ -84,31 +84,15 @@ class Measure:
rxframe = rxframe / np.median(np.abs(rxframe)) * np.median(np.abs(txframe))
if logging.getLogger().getEffectiveLevel() == logging.DEBUG:
- txframe_path = ('/tmp/txframe_fft_' +
- datetime.datetime.now().isoformat() +
- '.pdf')
- plt.plot(np.abs(np.fft.fftshift(np.fft.fft(txframe[:self.samplerate]))))
- plt.savefig(txframe_path)
- plt.clf()
-
- rxframe_path = ('/tmp/rxframe_fft_' +
- datetime.datetime.now().isoformat() +
- '.pdf')
- plt.plot(np.abs(np.fft.fftshift(np.fft.fft(rxframe[:self.samplerate]))))
- plt.savefig(rxframe_path)
- plt.clf()
-
- logging.debug("txframe: min %f, max %f, median %f, spectrum %s" %
+ logging.debug("txframe: min %f, max %f, median %f" %
(np.min(np.abs(txframe)),
np.max(np.abs(txframe)),
- np.median(np.abs(txframe)),
- txframe_path))
+ np.median(np.abs(txframe))))
- logging.debug("rxframe: min %f, max %f, median %f, spectrum %s" %
+ logging.debug("rxframe: min %f, max %f, median %f" %
(np.min(np.abs(rxframe)),
np.max(np.abs(rxframe)),
- np.median(np.abs(rxframe)),
- rxframe_path))
+ np.median(np.abs(rxframe))))
logging.debug("Disconnecting")
s.close()