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/Model.py | |
parent | a11b8c5b13654d69286c6661b4e5eee2d7b0cc59 (diff) | |
download | dabmod-70d4314056cf6ec2df93369ac50e223d9c43aef7.tar.gz dabmod-70d4314056cf6ec2df93369ac50e223d9c43aef7.tar.bz2 dabmod-70d4314056cf6ec2df93369ac50e223d9c43aef7.zip |
Cleanup plots
Diffstat (limited to 'dpd/src/Model.py')
-rw-r--r-- | dpd/src/Model.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/dpd/src/Model.py b/dpd/src/Model.py index 07ac5a4..f923799 100644 --- a/dpd/src/Model.py +++ b/dpd/src/Model.py @@ -28,9 +28,8 @@ class Model: np.median(np.abs(rxframe_aligned)) )) - tx_rx_frame_path = ('/tmp/tx_rx_sync_' + - datetime.datetime.now().isoformat() + - '.pdf') + dt = datetime.datetime.now().isoformat() + tx_rx_frame_path = ("/tmp/" + dt + "_tx_rx_sync.pdf") plt.plot(np.abs(rxframe_aligned[:128]), label="rxframe") plt.plot(np.abs(txframe_aligned[:128]), label="txframe") plt.xlabel("Samples") @@ -40,12 +39,6 @@ class Model: plt.clf() logging.debug("Tx, Rx synchronized %s" % tx_rx_frame_path) - dt = datetime.datetime.now().isoformat() - txframe_path = ('/tmp/tx_3_' + dt + '.iq') - txframe_aligned.tofile(txframe_path) - rxframe_path = ('/tmp/rx_3_' + dt + '.iq') - rxframe_aligned.tofile(rxframe_path) - mse = np.mean(np.abs(np.square(txframe_aligned - rxframe_aligned))) logging.debug("MSE: {}".format(mse)) |