From eac3c59e7592979c9e3bed3bddb77da53162bb2f Mon Sep 17 00:00:00 2001 From: Dan White Date: Tue, 4 Sep 2012 12:45:50 -0500 Subject: [PATCH] Script to plot calibration times --- python-lib/cal-times.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 python-lib/cal-times.py diff --git a/python-lib/cal-times.py b/python-lib/cal-times.py new file mode 100644 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] -- 2.25.1