18 csvReader=csv.reader(open(filename),delimiter=
',')
26 field0=str(row[0]).strip()
27 fieldsplit=re.split(
':',field0)
28 runstring = fieldsplit[0]
30 field1=str(row[1]).strip()
31 fieldsplit=re.split(
':',field1)
32 lsstring = fieldsplit[0]
33 except Exception
as e:
37 runnumber=int(runstring)
38 lsnumber=int(lsstring)
40 if runnumber != oldRun:
52 delivered, recorded = float( row[4] ), float( row[5] )
54 delivered, recorded = float( row[5] ), float( row[6] )
56 print 'Record not parsed, Run = %d, LS = %d' % (runnumber, lsnumber)
76 elems = [ delivered,recorded ]
82 return self.__result.keys()
84 '''return {run:lslist}
92 return len(self.__result.keys())
96 if __name__ ==
'__main__':
101 print 'runs : ',s.runs()
102 print 'full result : ',s.runsandls()
104 print 'num runs : ',s.numruns()