17 csvReader=csv.reader(open(filename),delimiter=
',')
25 field0=str(row[0]).strip()
26 fieldsplit=re.split(
':',field0)
27 runstring = fieldsplit[0]
29 field1=str(row[1]).strip()
30 fieldsplit=re.split(
':',field1)
31 lsstring = fieldsplit[0]
36 runnumber=int(runstring)
37 lsnumber=int(lsstring)
39 if runnumber != oldRun:
50 delivered, recorded = float( row[5] ), float( row[6] )
52 print 'Record not parsed, Run = %d, LS = %d' % (runnumber, lsnumber)
72 elems = [ delivered,recorded ]
78 return self.__result.keys()
80 '''return {run:lslist}
88 return len(self.__result.keys())
92 if __name__ ==
'__main__':
97 print 'runs : ',s.runs()
98 print 'full result : ',s.runsandls()
100 print 'num runs : ',s.numruns()