diff --git a/docs/source/algorithms/RetrieveRunInfo-v1.rst b/docs/source/algorithms/RetrieveRunInfo-v1.rst index 630306b2930223b04553ca7cdf734cded41ba9f2..74efd6c926c4347380cdf53ed88fdf2a5c0d9337 100644 --- a/docs/source/algorithms/RetrieveRunInfo-v1.rst +++ b/docs/source/algorithms/RetrieveRunInfo-v1.rst @@ -55,9 +55,9 @@ Usage info_table = RetrieveRunInfo(Runs="IRS21360,IRS26173") print("The table contains information about {} runs.".format(info_table.rowCount())) - print "The first has run number {}.".format(info_table.cell("run_number", 0))) - print "The second has run number {}.".format(info_table.cell("run_number", 1))) - print "The title of the second run is \"{}.\"".format(info_table.cell("run_title", 1).strip())) + print("The first has run number {}.".format(info_table.cell("run_number", 0))) + print("The second has run number {}.".format(info_table.cell("run_number", 1))) + print("The title of the second run is \"{}.\"".format(info_table.cell("run_title", 1).strip())) .. testcleanup:: ExSingleRun diff --git a/docs/source/algorithms/RunPythonScript-v1.rst b/docs/source/algorithms/RunPythonScript-v1.rst index c667a6cab2f3d28d2b8b2b9caccc4687ce4628fc..ea1888422f5f5c75d71bf53070650dc88a9f9aff 100644 --- a/docs/source/algorithms/RunPythonScript-v1.rst +++ b/docs/source/algorithms/RunPythonScript-v1.rst @@ -41,7 +41,7 @@ Usage RunPythonScript(InputWorkspace=ws,Code=script,OutputWorkspace="wsOut") wsOut = mtd["wsOut"] - print("The workspace contained a total of {} counts".format(wsOut.readY(0)[0])) + print("The workspace contained a total of {:d} counts".format(wsOut.readY(0)[0])) Output: diff --git a/docs/source/algorithms/SANSWideAngleCorrection-v1.rst b/docs/source/algorithms/SANSWideAngleCorrection-v1.rst index 95090f62b91a10f00c2a9583475e3ad61f095173..e40584ed0b2e19ff898c79a8699c6546c68a6ef9 100644 --- a/docs/source/algorithms/SANSWideAngleCorrection-v1.rst +++ b/docs/source/algorithms/SANSWideAngleCorrection-v1.rst @@ -149,7 +149,7 @@ Usage corrected_data = SANSWideAngleCorrection(sample, transmission) - print("{} was corrected to {}.".format(sample.readY(19)[0], corrected_data.readY(19)[0])) + print("{:.6} was corrected to {:.6}.".format(sample.readY(19)[0], corrected_data.readY(19)[0])) Output: diff --git a/docs/source/algorithms/SassenaFFT-v1.rst b/docs/source/algorithms/SassenaFFT-v1.rst index b3403d796259191916d037e9f51bed3995d454e2..eb383732e69b2f32381fdc86c58d54b612a0e0af 100644 --- a/docs/source/algorithms/SassenaFFT-v1.rst +++ b/docs/source/algorithms/SassenaFFT-v1.rst @@ -70,7 +70,7 @@ Usage ws = LoadSassena("loadSassenaExample.h5", TimeUnit=1.0) SassenaFFT(ws, FFTonlyRealPart=1, Temp=1000, DetailedBalance=1) - print('workspaces instantiated: {}.format(', '.join(ws.getNames()))) + print('workspaces instantiated: {}.format(', '.join(ws.getNames())) sqt = ws[3] # S(Q,E) # I(Q,t) is a Gaussian, thus S(Q,E) is a Gaussian too (at high temperatures)