Definition at line 15 of file LumiCalcWorking.py.
◆ __init__()
def python.LumiCalcWorking.LumiWorking.__init__ |
( |
|
self | ) |
|
◆ checkDone()
def python.LumiCalcWorking.LumiWorking.checkDone |
( |
|
self | ) |
|
◆ printDetails()
def python.LumiCalcWorking.LumiWorking.printDetails |
( |
|
self | ) |
|
Definition at line 74 of file LumiCalcWorking.py.
74 def printDetails(self):
76 print (
'<h3>iLumiCalc Output</h3>')
77 print (
'<p>This page should automatically update approximately every %d seconds, and will show you the results when iLumiCalc is done.' % self.delay)
78 print (
'If for some reason the updates stop, the final results should (eventually) be available <a href="result.html">here</a>.')
79 print (
'<p>In the meantime, the tail of the <a href="output.txt">raw iLumiCalc output</a> is appended below.')
80 print (
"Please don't restart your calculation unless the process really seems to be dead!</p>")
82 p = subprocess.Popen(
'tail -37 output.txt', shell=
True, stdout=subprocess.PIPE).stdout
84 self.appearsDone =
False
86 for line
in p.readlines():
88 if line.strip() ==
"Done":
89 self.appearsDone =
True
93 print (
'<p>lumiCalc appears to be done, but likely the original process script has timed out. You can try finishing by hand with the link <a href="LumiCalcRecover.py">here</a>. Note, this will likely screw things up if your process is still running, however..</p>\n')
◆ printFooter()
def python.LumiCalcWorking.LumiWorking.printFooter |
( |
|
self | ) |
|
Definition at line 95 of file LumiCalcWorking.py.
97 print (
'<table class="bottomtable">')
98 print (
'<tr style="height:45px; vertical-align: top;">')
99 print (
'<td><a href="http://validator.w3.org/check?uri=referer">')
100 print (
'<img src="/images/xhtml10.gif" alt="Valid XHTML 1.0 Transitional" /></a><br />')
101 print (
'<a href="http://jigsaw.w3.org/css-validator/check/referer">')
102 print (
'<img src="/images/css.gif" alt="Valid CSS!" /></a>')
103 print (
'</td><td style="text-align:right"></td></tr></table>')
◆ printHead()
def python.LumiCalcWorking.LumiWorking.printHead |
( |
|
self | ) |
|
Definition at line 48 of file LumiCalcWorking.py.
49 print (
'Content-Type: text/html')
51 print (
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">')
53 print (
'<title>ATLAS Luminosity Calculator</title>')
54 print (
'<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>')
55 print (
'<meta name="ATLAS_Luminosity_Calculator" content="ATLAS Luminosity Calculator"></meta>')
56 print (
'<link rel="stylesheet" type="text/css" href="/css/atlas-datasummary.css" media="screen"></link>')
57 print (
'<link rel="stylesheet" type="text/css" href="/css/atlas-datasummary-print.css" media="print"></link>')
58 print (
'<link rel="shortcut icon" href="/images/favicon.ico"></link>')
59 print (
'<meta http-equiv="Refresh" content="%d">' % self.delay)
◆ printParams()
def python.LumiCalcWorking.LumiWorking.printParams |
( |
|
self | ) |
|
Definition at line 63 of file LumiCalcWorking.py.
63 def printParams(self):
65 fhead =
open(
"working.html",
'r')
67 for line
in fhead.readlines():
68 if line ==
'<body>\n': writeOut =
True
69 if not writeOut:
continue
◆ printWorking()
def python.LumiCalcWorking.LumiWorking.printWorking |
( |
|
self | ) |
|
◆ redirectDone()
def python.LumiCalcWorking.LumiWorking.redirectDone |
( |
|
self | ) |
|
Definition at line 25 of file LumiCalcWorking.py.
25 def redirectDone(self):
27 print (
'Content-Type: text/html')
29 print (
'<html><head>')
30 print (
'<meta http-equiv="Refresh" content="0; url=result.html">')
31 print (
'</head></html>')
◆ redirectRecover()
def python.LumiCalcWorking.LumiWorking.redirectRecover |
( |
|
self | ) |
|
Definition at line 33 of file LumiCalcWorking.py.
33 def redirectRecover(self):
35 print (
'Content-Type: text/html')
37 print (
'<html><head>')
38 print (
'<meta http-equiv="Refresh" content="0; url=LumiCalcRecover.py">')
39 print (
'</head></html>')
◆ appearsDone
python.LumiCalcWorking.LumiWorking.appearsDone |
◆ delay
python.LumiCalcWorking.LumiWorking.delay |
The documentation for this class was generated from the following file: