|
def | __init__ (self) |
|
def | index (self) |
|
def | generate (self, configuration=None, folder='LBSUMM', cooltag='HEAD') |
|
Definition at line 98 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 160 of file GoodRunsLists/python/grl.py.
160 def generate(self, configuration=None, folder='LBSUMM', cooltag='HEAD'):
161 if configuration
is None:
163 with self.genlock
as lock:
164 q = multiprocessing.Queue()
165 proc = multiprocessing.Process(target=_get_grl_info,
166 args = [os.path.join(GRL_DIRECTORY, configuration),
168 kwargs = {
'queue': q,
'folder': folder})
172 cherrypy.response.headers[
'content-type'] =
'text/xml'
173 cherrypy.response.headers[
'content-disposition'] =
'attachment; filename=%s' % rv[1]
◆ index()
def python.grl.GRLGen.index |
( |
|
self | ) |
|
Definition at line 104 of file GoodRunsLists/python/grl.py.
106 '<title>GRL generator</title>'
107 '<script type="text/javascript" src="/static/js/grl.js"><!-- -->'
109 '</head><body onload="onLoad()">'
110 '<h1>Good Run List Generator</h1>'
111 '<p>This generator allows you to create good run list XML files from '
112 'configurations that are currently kept on AFS, in <tt>~atlasdqm/grl</tt>.'
114 '<p>CoolRunQuery-00-01-92'
115 '<p>GoodRunsLists-00-00-71'
117 rv.append(
'<div><form method="get" action="generate" style="border-width: 2px; border-style:solid">')
118 rv.append(
'Configuration file: <select name="configuration" id="confselect">')
120 rv.append(
'<option value="%(config)s">%(config)s</option>'
122 rv.append(
'</select> <a href="javascript:downloadPython()">(Click to download)</a> <br/>\n')
123 rv.append(
'DQ folder: <select name="folder" id="folderselect" onchange="adjustTagList(this)">\n'
124 '<option value="LBSUMM" selected>LBSUMM: Full DQ summary (default, recommended)</option>\n'
125 '<option value="SHIFTOFL">SHIFTOFL: Offline shifters (experts)</option>\n'
126 '<option value="DQCALCOFL">DQCALCOFL: Automatic checks + online shifters (experts)</option>\n'
127 '</select> If in doubt, leave as LBSUMM<br/>'
129 rv.append(
'COOL tag: <select name="cooltag" id ="cooltagselect">')
130 for folder
in (
'LBSUMM',
'SHIFTOFL',
'DQCALCOFL'):
132 if t
in TAGS_TO_SUPPRESS:
continue
135 apptext.append(
'(%s)' % descr)
136 if lock ==
'unlocked':
137 apptext.append(
'Tag unlocked, all runs may change')
138 elif lock ==
'partial':
139 apptext.append(
'Tag partially locked, recent runs may change')
141 apptext.append(
'Tag locked')
143 apptext.insert(0,
'—')
144 rv.append(
'<option value="%(tag)s">%(tag)s %(apptext)s</option>'
145 % {
'tag': t,
'apptext':
' '.
join(apptext)})
148 '<option value="">HEAD</option>'
151 '<input type="submit" value="Submit"/>\n'
154 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)