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/subsample_align.py | |
parent | a11b8c5b13654d69286c6661b4e5eee2d7b0cc59 (diff) | |
download | dabmod-70d4314056cf6ec2df93369ac50e223d9c43aef7.tar.gz dabmod-70d4314056cf6ec2df93369ac50e223d9c43aef7.tar.bz2 dabmod-70d4314056cf6ec2df93369ac50e223d9c43aef7.zip |
Cleanup plots
Diffstat (limited to 'dpd/src/subsample_align.py')
-rwxr-xr-x | dpd/src/subsample_align.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dpd/src/subsample_align.py b/dpd/src/subsample_align.py index 992aa03..0dc78c1 100755 --- a/dpd/src/subsample_align.py +++ b/dpd/src/subsample_align.py @@ -66,9 +66,8 @@ def subsample_align(sig, ref_sig): ixs = np.linspace(-1, 1, 100) taus = corr(ixs) - tau_path = ('/tmp/tau_' + - datetime.datetime.now().isoformat() + - '.pdf') + dt = datetime.datetime.now().isoformat() + tau_path = ("/tmp/" + dt + "_tau.pdf") plt.plot(ixs, taus) plt.title("Subsample correlation, minimum is best: {}".format(best_tau)) plt.savefig(tau_path) |