|
def | __init__ (self) |
|
def | index (self) |
|
def | generate (self, configuration=None, folder='LBSUMM', cooltag='HEAD') |
|
Definition at line 99 of file GoodRunsLists/python/grl.py.
◆ __init__()
def python.grl.GRLGen.__init__ |
( |
|
self | ) |
|
◆ generate()
def python.grl.GRLGen.generate |
( |
|
self, |
|
|
|
configuration = None , |
|
|
|
folder = 'LBSUMM' , |
|
|
|
cooltag = 'HEAD' |
|
) |
| |
Definition at line 161 of file GoodRunsLists/python/grl.py.
161 def generate(self, configuration=None, folder='LBSUMM', cooltag='HEAD'):
162 if configuration
is None:
164 with self.genlock
as lock:
165 q = multiprocessing.Queue()
166 proc = multiprocessing.Process(target=_get_grl_info,
167 args = [os.path.join(GRL_DIRECTORY, configuration),
169 kwargs = {
'queue': q,
'folder': folder})
173 cherrypy.response.headers[
'content-type'] =
'text/xml'
174 cherrypy.response.headers[
'content-disposition'] =
'attachment; filename=%s' % rv[1]
◆ index()
def python.grl.GRLGen.index |
( |
|
self | ) |
|
Definition at line 105 of file GoodRunsLists/python/grl.py.
107 '<title>GRL generator</title>'
108 '<script type="text/javascript" src="/static/js/grl.js"><!-- -->'
110 '</head><body onload="onLoad()">'
111 '<h1>Good Run List Generator</h1>'
112 '<p>This generator allows you to create good run list XML files from '
113 'configurations that are currently kept on AFS, in <tt>~atlasdqm/grl</tt>.'
115 '<p>CoolRunQuery-00-01-92'
116 '<p>GoodRunsLists-00-00-71'
118 rv.append(
'<div><form method="get" action="generate" style="border-width: 2px; border-style:solid">')
119 rv.append(
'Configuration file: <select name="configuration" id="confselect">')
121 rv.append(
'<option value="%(config)s">%(config)s</option>'
123 rv.append(
'</select> <a href="javascript:downloadPython()">(Click to download)</a> <br/>\n')
124 rv.append(
'DQ folder: <select name="folder" id="folderselect" onchange="adjustTagList(this)">\n'
125 '<option value="LBSUMM" selected>LBSUMM: Full DQ summary (default, recommended)</option>\n'
126 '<option value="SHIFTOFL">SHIFTOFL: Offline shifters (experts)</option>\n'
127 '<option value="DQCALCOFL">DQCALCOFL: Automatic checks + online shifters (experts)</option>\n'
128 '</select> If in doubt, leave as LBSUMM<br/>'
130 rv.append(
'COOL tag: <select name="cooltag" id ="cooltagselect">')
131 for folder
in (
'LBSUMM',
'SHIFTOFL',
'DQCALCOFL'):
133 if t
in TAGS_TO_SUPPRESS:
continue
136 apptext.append(
'(%s)' % descr)
137 if lock ==
'unlocked':
138 apptext.append(
'Tag unlocked, all runs may change')
139 elif lock ==
'partial':
140 apptext.append(
'Tag partially locked, recent runs may change')
142 apptext.append(
'Tag locked')
144 apptext.insert(0,
'—')
145 rv.append(
'<option value="%(tag)s">%(tag)s %(apptext)s</option>'
146 % {
'tag': t,
'apptext':
' '.
join(apptext)})
149 '<option value="">HEAD</option>'
152 '<input type="submit" value="Submit"/>\n'
155 rv.append(
'</body></html>')
◆ genlock
python.grl.GRLGen.genlock |
The documentation for this class was generated from the following file:
def generate(process_dir='PROC_mssm_0', grid_pack=False, gridpack_compile=False, extlhapath=None, required_accuracy=0.01, runArgs=None, bias_module=None, requirePMGSettings=False)