summaryrefslogtreecommitdiffstats
path: root/dpd/src/subsample_align.py
diff options
context:
space:
mode:
Diffstat (limited to 'dpd/src/subsample_align.py')
-rwxr-xr-xdpd/src/subsample_align.py5
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)