Skip to content

Commit

Permalink
Added duration and (tthd-thi)/2 in list of infos display. This refs #…
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux committed Jun 15, 2012
1 parent 2222bf2 commit 319d8c5
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Code/Mantid/Framework/PythonAPI/PythonAlgorithms/RefLview.py
Expand Up @@ -100,10 +100,17 @@ def PyExec(self):
_line = ' Run start: ' + run_start
print _line

#duration
duration_value = mt_run.getProperty('duration').value
duration_units = mt_run.getProperty('duration').units
_line = ' Duration: {0:.2f}'.format(duration_value)
_line += ' ' + duration_units
print _line

#Lambda Requested
lambda_request_value = mt_run.getProperty('LambdaRequest').value[0]
lambda_request_units = mt_run.getProperty('LambdaRequest').units
_line = ' Lambda requested: ' + str(lambda_request_value)
_line = ' Lambda requested: {0:.2f}'.format(lambda_request_value)
_line += ' ' + lambda_request_units
print _line

Expand All @@ -121,6 +128,12 @@ def PyExec(self):
_line += ' ' + thi_units
print _line

#(tthd-thi)/2
_cal = (float(tthd_value)-float(thi_value))/2.
_line = ' (tthd-thi)/2: {0:.2f}'.format(_cal)
_line += ' ' + thi_units
print _line

#ths
ths_value = mt_run.getProperty('ths').value[0]
ths_units = mt_run.getProperty('ths').units
Expand Down

0 comments on commit 319d8c5

Please sign in to comment.