44 body += '<tr><td><b>LB start times (%s) and durations for run %i:</b><br>' % (QC.tzdesc(),run.runNr)
45 body += '<font size="-1" color="#888888">(Begin/end of run: %s)</font>' % run.timestr('html', run.runNr != Run.runnropen)
46 body += '<hr color="black" size=1>'
47 body += '<table class="lb">'
48 body += '<tr><th>LB</th><th>Start time (%s)</th><th>Duration (sec)</th></tr>' % QC.tzdesc()
49 body += '<tr>'
50for idx,(lbtime,lbendtime) in enumerate(run.lbtimes):
51 lb=idx+1
52 timetuple = time.localtime(lbtime/1.E9) if QC.localtime else time.gmtime(lbtime/1.E9)
53 body += '<tr><td>%s</td><td>%s</td><td>%.2f</td></tr>' % (lb, time.strftime('%X',timetuple), (float(lbendtime)-float(lbtime))/1.E9)
54if run.runNr == Run.runnropen: # run still ongoing
55 body += '<tr><td style="text-align:left"colspan="3"><i> Run still ongoing ...</i></td></tr>'
56 body += '</tr></table>'
57 body += '<hr color="red" size=1><font color="#777777"><font size="-1"><i><font size="-2">Created by AtlRunQuery on: %s</font></i></font></td></tr></table>' % str(datetime.datetime.now())
67 content = '<strong><b>LB start times (%s) and durations for run %i:</b></strong><br>Begin/end of run: %s' % (QC.tzdesc(), run.runNr, run.timestr('html', run.runNr != Run.runnropen))
95 l_ready = [y for y in def_with_primaries[x] if run.data.isReady( (y.since,y.until) )]
96if len(l_ready)==0:
97continue
98 content = '<strong><b>%s: comments for run %i:</b></strong><br><span style="font-size: 80%%">ATLAS READY in LBs %s</span>' % (x,run.runNr,', '.join(["%i−%i" % (r.startlb, r.endlb-1) for r in run.data.isReady()]))
113for p,v in groupby(sorted(def_with_primaries[k]), key=attrgetter('description', 'comment')):
114 d[p] = [(e.since, e.until) for e in v]
115 gr[k] = d
116
117for x in sorted(gr):
118 content = '<strong><b>%s: comments for run %i:</b></strong><br><span style="font-size: 80%%">ATLAS READY in LBs %s</span>' % (x,run.runNr,', '.join(["%i−%i" % (r.startlb, r.endlb-1) for r in run.data.isReady()]))
217 boxcontent += '<strong><b>Tier-0 output types for this stream:</b></strong><br>(Datasets in <font color="#BB000"><strong><b>red</b></strong></font> are <font color="#BB000">replicated to CAF</font>'
225 lbrecinfo = '<tr><td style="font-size:75%"><i>No LB information in SFO DB. <br> Probably because files for this stream <br>were not closed at LB boundaries by SFO.</i></td></tr>'
238 output += '</tr><tr><td style="font-size:75%; text-align:left" colspan="8"> ... <i>too many LBs ... show begin and end of run only...</i></td></tr>'
440 wincontent += '<strong><b>LHC beam energy and intensities during run %i:</b></strong><br><font size="-1"><font color="#888888">(Begin/end of run: %s)</font></font><hr color="black" size=1>' % (run.runNr, run.timestr('html', run.runNr != Run.runnropen))