diff --git a/Code/Mantid/Framework/PythonAPI/PythonAlgorithms/RefLview.py b/Code/Mantid/Framework/PythonAPI/PythonAlgorithms/RefLview.py index 1be1a5de8960..418f3620f3a3 100644 --- a/Code/Mantid/Framework/PythonAPI/PythonAlgorithms/RefLview.py +++ b/Code/Mantid/Framework/PythonAPI/PythonAlgorithms/RefLview.py @@ -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 @@ -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