From: Dan White Date: Tue, 4 Sep 2012 00:06:09 +0000 (-0500) Subject: Start chip01 test batch X-Git-Tag: calibrations~8 X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=59f48e51a79770f79da30ddc56f9875fdcd8a32d;p=430.git Start chip01 test batch --- 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 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 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 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 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 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 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 index 0000000..0bb47d5 --- /dev/null +++ b/python-lib/test-data/chip01/stats.py @@ -0,0 +1 @@ +../chip02/stats.py \ No newline at end of file diff --git a/python-lib/test-data/chip02/stats.py b/python-lib/test-data/chip02/stats.py index 873d7b5..3c8fd9d 100644 --- a/python-lib/test-data/chip02/stats.py +++ b/python-lib/test-data/chip02/stats.py @@ -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]