Variables
tb_allTimeWatchdog Namespace Reference

Variables

string webDir = "/nusoft/app/web/htdoc/nova/datacheck/processinghistory_tb"
 
string tmpWebDir = "/nusoft/app/web/htdoc/nova/datacheck/processinghistory_tb_tmp/"
 
 index = os.path.join(priContext, "Commissioning", "Watchdog", "tb_index.html")
 
string thumbSize = "400"
 
string endl = '\n'
 
int intervalLength = 7
 
 fullNames = OrderedDict()
 
 outputDirs = OrderedDict()
 
 boundaries = OrderedDict()
 
 timeStamps = OrderedDict()
 
 timeStrs = OrderedDict()
 
 allTimeMinRun = fetchTable(db[detector].cur, "select min(run) from "+detector+".runs")[0][0]
 
 allTimeMaxRun = fetchTable(db[detector].cur, "select max(run) from "+detector+".runs")[0][0]
 
int lastRun = 999999999
 
 lastTimeStamp = fetchTable(db[detector].cur, "select CURRENT_TIMESTAMP;")[0][0]
 
int nIntervals = 1
 
 minRunInInterval = fetchTable(db[detector].cur, "select min(run) from "+detector+".runs where tstart >= (CURRENT_TIMESTAMP - interval '"+str(intervalLength * nIntervals) +"' day);")[0][0]
 
 minTimeInInterval = fetchTable(db[detector].cur, "select tstart from "+detector+".runs where run = " + str(minRunInInterval))[0][0]
 
 historyPage = open(os.path.join(outputDirs[detector], "history.html"), 'w')
 
 maxRun = boundaries[detector][i-1]
 
 minRun = boundaries[detector][i]
 
 onMonRunsHist = getCompletedRunsHist(onMonDirs[detector], "OnMon Files", maxRun, minRun, lineStyle=7, lineColor=onMonColor, additionalDir=onMonTriggerDirs[detector])
 
 dbRunsHist = getDBRunsHist(minRun, maxRun, detector, lineStyle=1, lineColor=dbColor)
 
string plotName = path.name+str(i).zfill(3)+".png"
 
 can
 
 hists
 

Variable Documentation

tb_allTimeWatchdog.allTimeMaxRun = fetchTable(db[detector].cur, "select max(run) from "+detector+".runs")[0][0]

Definition at line 45 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.allTimeMinRun = fetchTable(db[detector].cur, "select min(run) from "+detector+".runs")[0][0]

Definition at line 44 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.boundaries = OrderedDict()

Definition at line 40 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.can

Definition at line 87 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.dbRunsHist = getDBRunsHist(minRun, maxRun, detector, lineStyle=1, lineColor=dbColor)

Definition at line 81 of file tb_allTimeWatchdog.py.

string tb_allTimeWatchdog.endl = '\n'

Definition at line 25 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.fullNames = OrderedDict()

Definition at line 30 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.historyPage = open(os.path.join(outputDirs[detector], "history.html"), 'w')

Definition at line 71 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.hists

Definition at line 87 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.index = os.path.join(priContext, "Commissioning", "Watchdog", "tb_index.html")

Definition at line 18 of file tb_allTimeWatchdog.py.

int tb_allTimeWatchdog.intervalLength = 7

Definition at line 28 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.lastRun = 999999999

Definition at line 46 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.lastTimeStamp = fetchTable(db[detector].cur, "select CURRENT_TIMESTAMP;")[0][0]

Definition at line 47 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.maxRun = boundaries[detector][i-1]

Definition at line 78 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.minRun = boundaries[detector][i]

Definition at line 79 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.minRunInInterval = fetchTable(db[detector].cur, "select min(run) from "+detector+".runs where tstart >= (CURRENT_TIMESTAMP - interval '"+str(intervalLength * nIntervals) +"' day);")[0][0]

Definition at line 54 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.minTimeInInterval = fetchTable(db[detector].cur, "select tstart from "+detector+".runs where run = " + str(minRunInInterval))[0][0]

Definition at line 55 of file tb_allTimeWatchdog.py.

int tb_allTimeWatchdog.nIntervals = 1

Definition at line 51 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.onMonRunsHist = getCompletedRunsHist(onMonDirs[detector], "OnMon Files", maxRun, minRun, lineStyle=7, lineColor=onMonColor, additionalDir=onMonTriggerDirs[detector])

Definition at line 80 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.outputDirs = OrderedDict()

Definition at line 33 of file tb_allTimeWatchdog.py.

string tb_allTimeWatchdog.plotName = path.name+str(i).zfill(3)+".png"

Definition at line 86 of file tb_allTimeWatchdog.py.

string tb_allTimeWatchdog.thumbSize = "400"

Definition at line 24 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.timeStamps = OrderedDict()

Definition at line 41 of file tb_allTimeWatchdog.py.

tb_allTimeWatchdog.timeStrs = OrderedDict()

Definition at line 42 of file tb_allTimeWatchdog.py.

string tb_allTimeWatchdog.tmpWebDir = "/nusoft/app/web/htdoc/nova/datacheck/processinghistory_tb_tmp/"

Definition at line 16 of file tb_allTimeWatchdog.py.

string tb_allTimeWatchdog.webDir = "/nusoft/app/web/htdoc/nova/datacheck/processinghistory_tb"

Definition at line 15 of file tb_allTimeWatchdog.py.