73 def printDetails(self):
74
75 print ('<h3>iLumiCalc Output</h3>')
76 print ('<p>This page should automatically update approximately every %d seconds, and will show you the results when iLumiCalc is done.' % self.delay)
77 print ('If for some reason the updates stop, the final results should (eventually) be available <a href="result.html">here</a>.')
78 print ('<p>In the meantime, the tail of the <a href="output.txt">raw iLumiCalc output</a> is appended below.')
79 print ("Please don't restart your calculation unless the process really seems to be dead!</p>")
80 print ('<pre>')
81 p = subprocess.Popen('tail -37 output.txt', shell=True, stdout=subprocess.PIPE).stdout
82
83 self.appearsDone = False
84
85 for line in p.readlines():
86 print (line, end='')
87 if line.strip() == "Done":
88 self.appearsDone = True
89
90 print ('</pre>')
91 if self.appearsDone:
92 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')
93