From 70d4314056cf6ec2df93369ac50e223d9c43aef7 Mon Sep 17 00:00:00 2001 From: andreas128 Date: Sat, 19 Aug 2017 19:19:46 +0200 Subject: Cleanup plots --- dpd/src/Measure.py | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'dpd/src/Measure.py') 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() -- cgit v1.2.3