1 from __future__
import print_function
19 csvReader=csv.reader(open(filename),delimiter=
',')
28 fieldsplit=re.split(
':',field0)
29 runstring = fieldsplit[0]
32 fieldsplit=re.split(
':',field1)
33 lsstring = fieldsplit[0]
34 except Exception
as e:
38 runnumber=
int(runstring)
39 lsnumber=
int(lsstring)
41 if runnumber != oldRun:
53 delivered, recorded =
float( row[4] ),
float( row[5] )
55 delivered, recorded =
float( row[5] ),
float( row[6] )
57 print(
'Record not parsed, Run = %d, LS = %d' % (runnumber, lsnumber))
77 elems = [ delivered,recorded ]
83 return self.__result.keys()
85 '''return {run:lslist} 97 if __name__ ==
'__main__':
102 print(
'runs : ',s.runs())
103 print(
'full result : ',s.runsandls())
105 print(
'num runs : ',s.numruns())
def __init__(self, filename, RunX)
S & print(S &os, JobReport::InputFile const &f)