projects
/
430.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9bba6b
)
Script to plot calibration times
author
Dan White
<dan@whiteaudio.com>
Tue, 4 Sep 2012 17:45:50 +0000
(12:45 -0500)
committer
Dan White
<dan@whiteaudio.com>
Tue, 4 Sep 2012 17:45:50 +0000
(12:45 -0500)
python-lib/cal-times.py
[new file with mode: 0644]
patch
|
blob
diff --git a/python-lib/cal-times.py
b/python-lib/cal-times.py
new file mode 100644
(file)
index 0000000..
a964951
--- /dev/null
+++ b/
python-lib/cal-times.py
@@ -0,0
+1,19
@@
+from glob import glob
+
+infiles = glob('*.npz')
+times = [s.split('_')[1][0:-4] for s in infiles]
+times = [3600*int(s[0:2]) + 60*int(s[2:4]) + int(s[4:]) for s in times]
+times.sort()
+dt = diff(times)
+
+# remove gaps
+#dt = [d for d in dt if d<150]
+
+plot(dt, 'o')
+ylim((0, 150))
+title('Calibration times')
+xlabel('Run number')
+ylabel('Time (s)')
+
+print len(dt)
+print 1.0*(dt[0]-dt[-1]) / dt[0]