Variables
APDInfo Namespace Reference

Variables

 pswdloc = os.environ['NOVADBPWDFILE']
 
 pswdfile = open(pswdloc, "r")
 
 pswd = pswdfile.read()
 
string SQL = "dbname=nova_hardware host=ifdbprod.fnal.gov user=nova_reader password={} port=5432"
 
 connFL = psycopg2.connect(SQL)
 
 parser = argparse.ArgumentParser()
 
 help
 
 action
 
 default
 
 args = parser.parse_args()
 
 useSafeMode = args.safe
 
 dcm = args.dcm
 
 curFL = connFL.cursor()
 
 rows = curFL.fetchall()
 
string dummy = 'dummyapd1'
 
 apdStatsLowT = dict(dummy = (-999, -999, 999.) )
 
 apdStatsHighT = dict(dummy = (-999, 999, 999.) )
 
 apd_stats_id = row[0]
 
 batch_no = row[1]
 
 apd_id = row[2]
 
 target_degc = row[3]
 
 vb = row[4]
 
 isrc = row[5]
 
 id_sum = row[6]
 
 ip_sum = row[7]
 
 vr = row[8]
 
 m_min = row[9]
 
 m_max = row[10]
 
 m_stdev = row[11]
 
 qe_mean = row[12]
 
 qe_min = row[13]
 
 qe_max = row[14]
 
 qe_stdev = row[15]
 
 refd_a_mean = row[16]
 
 refd_a_stdev = row[17]
 
 thmstr_mean = row[18]
 
 thmstr_stdev = row[19]
 
 tec_degc_mean = row[20]
 
 tec_degc_stdev = row[21]
 
tuple stats = (target_degc, apd_stats_id, batch_no, vb, isrc, id_sum, ip_sum, vr, m_min, m_max, m_stdev, qe_mean, qe_min, qe_max, qe_stdev, refd_a_mean, refd_a_stdev, thmstr_mean, thmstr_stdev, tec_degc_mean, tec_degc_stdev)
 
 prevStats = apdStatsHighT.get(apd_id)
 
 prevBatch = prevStats[0]
 
tuple bogus = (-999., -999, -999, -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999.)
 
 resultsFile = open("APDInfo.csv", "w")
 
 warm = apdStatsHighT.get(apd_id)
 
 cold = apdStatsLowT.get(apd_id)
 
string warmcold = '{},{},{}\n'
 

Variable Documentation

APDInfo.action

Definition at line 27 of file APDInfo.py.

APDInfo.apd_id = row[2]

Definition at line 54 of file APDInfo.py.

APDInfo.apd_stats_id = row[0]

Definition at line 52 of file APDInfo.py.

APDInfo.apdStatsHighT = dict(dummy = (-999, 999, 999.) )

Definition at line 47 of file APDInfo.py.

APDInfo.apdStatsLowT = dict(dummy = (-999, -999, 999.) )

Definition at line 46 of file APDInfo.py.

APDInfo.args = parser.parse_args()

Definition at line 29 of file APDInfo.py.

APDInfo.batch_no = row[1]

Definition at line 53 of file APDInfo.py.

tuple APDInfo.bogus = (-999., -999, -999, -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999., -999.)

Definition at line 95 of file APDInfo.py.

APDInfo.cold = apdStatsLowT.get(apd_id)

Definition at line 103 of file APDInfo.py.

APDInfo.connFL = psycopg2.connect(SQL)

Definition at line 20 of file APDInfo.py.

APDInfo.curFL = connFL.cursor()

Definition at line 33 of file APDInfo.py.

APDInfo.dcm = args.dcm

Definition at line 31 of file APDInfo.py.

APDInfo.default

Definition at line 28 of file APDInfo.py.

string APDInfo.dummy = 'dummyapd1'

Definition at line 45 of file APDInfo.py.

APDInfo.help

Definition at line 27 of file APDInfo.py.

APDInfo.id_sum = row[6]

Definition at line 58 of file APDInfo.py.

APDInfo.ip_sum = row[7]

Definition at line 59 of file APDInfo.py.

APDInfo.isrc = row[5]
APDInfo.m_max = row[10]

Definition at line 62 of file APDInfo.py.

APDInfo.m_min = row[9]

Definition at line 61 of file APDInfo.py.

APDInfo.m_stdev = row[11]

Definition at line 63 of file APDInfo.py.

APDInfo.parser = argparse.ArgumentParser()

Definition at line 26 of file APDInfo.py.

APDInfo.prevBatch = prevStats[0]

Definition at line 83 of file APDInfo.py.

APDInfo.prevStats = apdStatsHighT.get(apd_id)

Definition at line 82 of file APDInfo.py.

APDInfo.pswd = pswdfile.read()

Definition at line 15 of file APDInfo.py.

APDInfo.pswdfile = open(pswdloc, "r")

Definition at line 14 of file APDInfo.py.

APDInfo.pswdloc = os.environ['NOVADBPWDFILE']

Definition at line 13 of file APDInfo.py.

APDInfo.qe_max = row[14]

Definition at line 66 of file APDInfo.py.

APDInfo.qe_mean = row[12]

Definition at line 64 of file APDInfo.py.

APDInfo.qe_min = row[13]

Definition at line 65 of file APDInfo.py.

APDInfo.qe_stdev = row[15]

Definition at line 67 of file APDInfo.py.

APDInfo.refd_a_mean = row[16]

Definition at line 68 of file APDInfo.py.

APDInfo.refd_a_stdev = row[17]

Definition at line 69 of file APDInfo.py.

APDInfo.resultsFile = open("APDInfo.csv", "w")

Definition at line 97 of file APDInfo.py.

APDInfo.rows = curFL.fetchall()

Definition at line 44 of file APDInfo.py.

string APDInfo.SQL = "dbname=nova_hardware host=ifdbprod.fnal.gov user=nova_reader password={} port=5432"

Definition at line 17 of file APDInfo.py.

Definition at line 74 of file APDInfo.py.

APDInfo.target_degc = row[3]

Definition at line 55 of file APDInfo.py.

APDInfo.tec_degc_mean = row[20]

Definition at line 72 of file APDInfo.py.

APDInfo.tec_degc_stdev = row[21]

Definition at line 73 of file APDInfo.py.

APDInfo.thmstr_mean = row[18]

Definition at line 70 of file APDInfo.py.

APDInfo.thmstr_stdev = row[19]

Definition at line 71 of file APDInfo.py.

APDInfo.useSafeMode = args.safe

Definition at line 30 of file APDInfo.py.

APDInfo.vb = row[4]
APDInfo.vr = row[8]

Definition at line 60 of file APDInfo.py.

APDInfo.warm = apdStatsHighT.get(apd_id)

Definition at line 101 of file APDInfo.py.

string APDInfo.warmcold = '{},{},{}\n'

Definition at line 104 of file APDInfo.py.