update
authorDan White <dan@whiteaudio.com>
Mon, 24 Sep 2012 16:18:01 +0000 (11:18 -0500)
committerDan White <dan@whiteaudio.com>
Mon, 24 Sep 2012 16:18:01 +0000 (11:18 -0500)
python-lib/test-data/chip01/caldac-hist.pdf [new file with mode: 0644]
python-lib/test-data/chip01/calout-hist.pdf [new file with mode: 0644]
python-lib/test-data/chip02/stats.py

diff --git a/python-lib/test-data/chip01/caldac-hist.pdf b/python-lib/test-data/chip01/caldac-hist.pdf
new file mode 100644 (file)
index 0000000..7c92095
Binary files /dev/null and b/python-lib/test-data/chip01/caldac-hist.pdf differ
diff --git a/python-lib/test-data/chip01/calout-hist.pdf b/python-lib/test-data/chip01/calout-hist.pdf
new file mode 100644 (file)
index 0000000..7381a16
Binary files /dev/null and b/python-lib/test-data/chip01/calout-hist.pdf differ
index 9f3296db4e94f5160b2be08341016a306daf4ed7..929f9800dde6caa73ea14bd31e50ddcfffe0cd37 100644 (file)
@@ -11,12 +11,15 @@ cal_values = []
 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')):
@@ -103,6 +106,7 @@ if 0:
             (os.path.basename(os.getcwd()),
                 len(infiles)))
 
+interactive(False)
 
 if 1:
     figure()
@@ -111,6 +115,7 @@ if 1:
     xlabel('OTA tuning DAC value')
     title('Channel offset tuning histogram\n48x2 channels x %i runs' %
             (len(infiles),))
+    savefig('caldac-hist.pdf')
 
 
     figure()
@@ -119,6 +124,7 @@ if 1:
     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]