Start chip01 test batch
authorDan White <dan@whiteaudio.com>
Tue, 4 Sep 2012 00:06:09 +0000 (19:06 -0500)
committerDan White <dan@whiteaudio.com>
Tue, 4 Sep 2012 00:06:09 +0000 (19:06 -0500)
python-lib/test-data/chip01/2012-09-03_185205.npz [new file with mode: 0644]
python-lib/test-data/chip01/2012-09-03_185355.npz [new file with mode: 0644]
python-lib/test-data/chip01/2012-09-03_185550.npz [new file with mode: 0644]
python-lib/test-data/chip01/2012-09-03_190020.npz [new file with mode: 0644]
python-lib/test-data/chip01/2012-09-03_190201.npz [new file with mode: 0644]
python-lib/test-data/chip01/2012-09-03_190417.npz [new file with mode: 0644]
python-lib/test-data/chip01/stats.py [new symlink]
python-lib/test-data/chip02/stats.py

diff --git a/python-lib/test-data/chip01/2012-09-03_185205.npz b/python-lib/test-data/chip01/2012-09-03_185205.npz
new file mode 100644 (file)
index 0000000..e39a45a
Binary files /dev/null and b/python-lib/test-data/chip01/2012-09-03_185205.npz differ
diff --git a/python-lib/test-data/chip01/2012-09-03_185355.npz b/python-lib/test-data/chip01/2012-09-03_185355.npz
new file mode 100644 (file)
index 0000000..a00f8e4
Binary files /dev/null and b/python-lib/test-data/chip01/2012-09-03_185355.npz differ
diff --git a/python-lib/test-data/chip01/2012-09-03_185550.npz b/python-lib/test-data/chip01/2012-09-03_185550.npz
new file mode 100644 (file)
index 0000000..76cd891
Binary files /dev/null and b/python-lib/test-data/chip01/2012-09-03_185550.npz differ
diff --git a/python-lib/test-data/chip01/2012-09-03_190020.npz b/python-lib/test-data/chip01/2012-09-03_190020.npz
new file mode 100644 (file)
index 0000000..a6a6a81
Binary files /dev/null and b/python-lib/test-data/chip01/2012-09-03_190020.npz differ
diff --git a/python-lib/test-data/chip01/2012-09-03_190201.npz b/python-lib/test-data/chip01/2012-09-03_190201.npz
new file mode 100644 (file)
index 0000000..7c2c7ed
Binary files /dev/null and b/python-lib/test-data/chip01/2012-09-03_190201.npz differ
diff --git a/python-lib/test-data/chip01/2012-09-03_190417.npz b/python-lib/test-data/chip01/2012-09-03_190417.npz
new file mode 100644 (file)
index 0000000..e1fb44b
Binary files /dev/null and b/python-lib/test-data/chip01/2012-09-03_190417.npz differ
diff --git a/python-lib/test-data/chip01/stats.py b/python-lib/test-data/chip01/stats.py
new file mode 120000 (symlink)
index 0000000..0bb47d5
--- /dev/null
@@ -0,0 +1 @@
+../chip02/stats.py
\ No newline at end of file
index 873d7b50ec9a5fe0914eb5805937cdea90216247..3c8fd9d7b4ce16cae512deae683bb8d14524c3d6 100644 (file)
@@ -8,13 +8,15 @@ from glob import glob
 cal_values = []
 cal_outs = []
 
-N_RUNS = 8
-sample_runs = randint(48, size=(N_RUNS,))
+infiles = sorted(glob('*.npz'))
+N_RUNS = min(len(infiles), 8)
+sample_runs = randint(len(infiles), size=(N_RUNS,))
 N_PLOTS = 4
 sample_channels = sorted(randint(48, size=(N_PLOTS,)))
 N_COLS = 4
 nrun = 0
-for infile in sorted(glob('*.npz')):
+for infile in infiles:
+#for infile in sorted(glob('*.npz')):
 #for infile in sorted(glob('2012-09-03_1*.npz')):
     d = np.load(infile)
 
@@ -26,10 +28,8 @@ for infile in sorted(glob('*.npz')):
 
     d.close() # close file descriptor
     
-    if 1:
+    if nrun in sample_runs:
         for i,k in enumerate(sample_channels):
-            if nrun not in sample_runs:
-                continue
             g = guesses[:, 0, k]
             r = 1e3*(2.5/2/2**13)*results[:, 0, k]