Closed bdorney closed 5 years ago
cc7
defaults installed on gem904daq01
and gem904qc8daq
for:
python-sqlalchemy
python-pandas
cx_Oracle
ready for review @jsturdy @mexanick
@jsturdy removed hard coded names and switched to env variables, typos fixed, and then all retested.
I think we are good now.
Description
Basic idea behind this PR was to provide basic DB functionality for calibration routines in lab and to provide importable analysis routine for DAC scans.
Detailed summary of changes:
anaDACScan.py
now imports the dac analysis routine fromutils/anautilities.py
fitScanData(...)
can now take either a calibration file to be parsed or a pre-parsed tuple. It will check for the calibration file first (until reed-muller is implemented...),Types of changes
Motivation and Context
Connectivity testing provides a place for DAC scans to be done in situ. Since a follow-up scurve is expected to check the number of dead channels are within tolerance it is also expected that the DAC scans be analyzed in situ and then results applied. This means an importable analysis routine and DB reading is required.
How Has This Been Tested?
Changes to DAC Analysis
Works as expected.
Testing DB Interaction Tools
Using test script I queried the VFAT ChipID's and then tried to look in the DB to retrieve their calibration values:
So we can read the data in the DB. Reason for some VFATs not being found is due to the chipID bit flip problem; successive reads show different number of VFATs not found and a different size of the output dataframe. You can see the bit flip clearly in the printed list in decimal,
Screenshots (if appropriate):
Checklist: