[g2p_ana] code for getting bcm constant
Pengjia
pzhu at jlab.org
Mon Jul 9 22:25:06 EDT 2012
Hi Everyone,
I built a python class to get the bcm constant, you can find the code in:
/w/halla-1/g2p/codeshare/bcm/bcmconst.py
You just need to give it run number, device(sis3800,sis3801 or
happex),upstream or downstream, clocktype(fast or slow clock), you can find
the example and usage in that code(__main__ part).
This code will read bcm constant from the spreadsheet which I posted in
wiki one to two months ago(in
https://hallaweb.jlab.org/wiki/index.php/G2p_BCM_calibration), you can
assign filename, or it will automatic download the file from the wiki.
Also you will need to download odsread.py file in the same
directory(/w/halla-1/g2p/codeshare/bcm/odsread.py) which I wrote for
reading ods file(openoffice spreadsheet), you can also use it to read any
other ods files.
If you find any bugs please let me know.
Thanks!
Pengjia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.jlab.org/pipermail/g2p_ana/attachments/20120709/76c2a17f/attachment.html
More information about the g2p_ana
mailing list