diff options
author | andreas128 <Andreas> | 2017-08-19 19:19:46 +0200 |
---|---|---|
committer | andreas128 <Andreas> | 2017-08-19 19:19:46 +0200 |
commit | 70d4314056cf6ec2df93369ac50e223d9c43aef7 (patch) | |
tree | cd95b16dc6783e3c66e89d13fac48e347a874e18 /dpd/src/Measure.py | |
parent | a11b8c5b13654d69286c6661b4e5eee2d7b0cc59 (diff) | |
download | dabmod-70d4314056cf6ec2df93369ac50e223d9c43aef7.tar.gz dabmod-70d4314056cf6ec2df93369ac50e223d9c43aef7.tar.bz2 dabmod-70d4314056cf6ec2df93369ac50e223d9c43aef7.zip |
Cleanup plots
Diffstat (limited to 'dpd/src/Measure.py')
-rw-r--r-- | dpd/src/Measure.py | 24 |
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() |