From: Dan White Date: Sun, 2 Feb 2014 23:28:41 +0000 (-0600) Subject: update waeda pointers, change sch title blocks X-Git-Tag: cheetah~41 X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=fb671640b099aef301aea53dee4dec8d86fb97ee;p=430.git update waeda pointers, change sch title blocks --- diff --git a/.gitmodules b/.gitmodules index d2951b8..6386ca0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,8 @@ [submodule "test-pcb/waeda-sym"] path = sch-pcb/waeda-sym - url = ssh://dan@twain.unl.edu/space/git/waeda-sym.git + ;url = ssh://dan@twain.unl.edu/space/git/waeda-sym.git + url = git@git.whiteaudio.com:waeda-sym.git [submodule "test-pcb/waeda-fp"] path = sch-pcb/waeda-fp - url = ssh://dan@twain.unl.edu/space/git/waeda-fp.git + ;url = ssh://dan@twain.unl.edu/space/git/waeda-fp.git + url = git@git.whiteaudio.com:waeda-fp.git diff --git a/python-lib/test-data/chip02/stats.py b/python-lib/test-data/chip02/stats.py index 929f980..0df5159 100644 --- a/python-lib/test-data/chip02/stats.py +++ b/python-lib/test-data/chip02/stats.py @@ -11,15 +11,15 @@ cal_values = [] cal_outs = [] infiles = sorted(glob('*.npz')) -#N_RUNS = min(len(infiles), 8) -N_RUNS = 0 +N_RUNS = min(len(infiles), 8) +#N_RUNS = 0 sample_runs = sorted(rand_sample(range(len(infiles)), N_RUNS)) -#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 = 0 +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 = 0 nrun = 0 for infile in infiles: #for infile in sorted(glob('*.npz')): @@ -81,6 +81,7 @@ if 0: hist(data, bins=100, range=(-dm, dm), align='left') xlim((-dm, dm)) #ylim((0, 50)) + print i,k,data.std() subplot(N_PLOTS, N_COLS, 1) title('Offset DAC value') @@ -108,7 +109,7 @@ if 0: interactive(False) -if 1: +if 0: figure() data = cv.flatten() hist(data, bins=range(128), align='left') @@ -126,6 +127,23 @@ if 1: (len(infiles),)) savefig('calout-hist.pdf') -print sample_runs -print [infiles[s] for s in sample_runs] + +if 1: + # stddev for each calibrated channel + means = [] + stdds = [] + c = 0 + for k in range(co.shape[2]): + data = 1e3*(2.5/2/2**13)*co[:, 0, k] + m = data.mean() + s = data.std() + means.append(m) + stdds.append(s) + if abs(m) < 10.0 and abs(s) < 10.0: + c += 1 + print '%02i: mean: %5.1f, std: %5.1f' % (k, m, s) + + print 'good channels:', c +#print sample_runs +#print [infiles[s] for s in sample_runs] diff --git a/sch-pcb/usbio/usbio-1.sch b/sch-pcb/usbio/usbio-1.sch index 7084ff2..ff533d5 100644 --- a/sch-pcb/usbio/usbio-1.sch +++ b/sch-pcb/usbio/usbio-1.sch @@ -1,5 +1,5 @@ v 20111231 2 -C 40000 40000 0 0 0 title-wa-85x110.sym +C 40000 40000 0 0 0 title-phd-85x110.sym { T 49900 40600 5 10 1 1 0 0 1 date=--- diff --git a/sch-pcb/usbio/usbio-2.sch b/sch-pcb/usbio/usbio-2.sch index d2e2d27..f4522e0 100644 --- a/sch-pcb/usbio/usbio-2.sch +++ b/sch-pcb/usbio/usbio-2.sch @@ -1,5 +1,5 @@ v 20111231 2 -C 40000 40000 0 0 0 title-wa-85x110.sym +C 40000 40000 0 0 0 title-phd-85x110.sym { T 49900 40600 5 10 1 1 0 0 1 date=--- diff --git a/sch-pcb/usbio/usbio-3.sch b/sch-pcb/usbio/usbio-3.sch index 6a649ca..e2ce614 100644 --- a/sch-pcb/usbio/usbio-3.sch +++ b/sch-pcb/usbio/usbio-3.sch @@ -1,5 +1,5 @@ v 20111231 2 -C 40000 40000 0 0 0 title-wa-85x110.sym +C 40000 40000 0 0 0 title-phd-85x110.sym { T 50000 40600 5 10 1 1 0 0 1 date=--- diff --git a/sch-pcb/usbio/usbio-4.sch b/sch-pcb/usbio/usbio-4.sch index 195f627..5c91f9e 100644 --- a/sch-pcb/usbio/usbio-4.sch +++ b/sch-pcb/usbio/usbio-4.sch @@ -1,5 +1,5 @@ v 20111231 2 -C 40000 40000 0 0 0 title-wa-85x110.sym +C 40000 40000 0 0 0 title-phd-85x110.sym { T 49900 40600 5 10 1 1 0 0 1 date=--- diff --git a/sch-pcb/usbio/usbio-5.sch b/sch-pcb/usbio/usbio-5.sch index dc8b5a1..89dc798 100644 --- a/sch-pcb/usbio/usbio-5.sch +++ b/sch-pcb/usbio/usbio-5.sch @@ -1,5 +1,5 @@ v 20111231 2 -C 40000 40000 0 0 0 title-wa-85x110.sym +C 40000 40000 0 0 0 title-phd-85x110.sym { T 49900 40600 5 10 1 1 0 0 1 date=---