cal_outs = []
infiles = sorted(glob('*.npz'))
-N_RUNS = min(len(infiles), 8)
+#N_RUNS = min(len(infiles), 8)
+N_RUNS = 0
sample_runs = sorted(rand_sample(range(len(infiles)), N_RUNS))
-N_PLOTS = 4
+#N_PLOTS = 4
+N_PLOTS = 0
#sample_channels = sorted(rand_sample(range(48), N_PLOTS))
sample_channels = range(N_PLOTS)
-N_COLS = 4
+#N_COLS = 4
+N_COLS = 0
nrun = 0
for infile in infiles:
#for infile in sorted(glob('*.npz')):
(os.path.basename(os.getcwd()),
len(infiles)))
+interactive(False)
if 1:
figure()
xlabel('OTA tuning DAC value')
title('Channel offset tuning histogram\n48x2 channels x %i runs' %
(len(infiles),))
+ savefig('caldac-hist.pdf')
figure()
xlabel('Tuned channel output offset voltage (mV)')
title('Channel offset tuning histogram\n48x2 channels x %i runs' %
(len(infiles),))
+ savefig('calout-hist.pdf')
print sample_runs
print [infiles[s] for s in sample_runs]