diff --git a/docs/source/algorithms/RemovePromptPulse-v1.rst b/docs/source/algorithms/RemovePromptPulse-v1.rst index eadf4e1a6edfef40666b1d241473fd528a0c2f4d..ed8ebe3780d10818b4c603d6a1f4163e3939dd4b 100644 --- a/docs/source/algorithms/RemovePromptPulse-v1.rst +++ b/docs/source/algorithms/RemovePromptPulse-v1.rst @@ -31,10 +31,10 @@ Usage x=w1.dataX(0) y=w1.dataY(0) - print("Y( {} ) = {}".format(x[100], y[100]) - print("Y( {} ) = {}".format(x[1000], y[1000]) - print("Y( {} ) = {}".format(x[4100], y[4100]) - print("Y( {} ) = {}".format(x[5000], y[5000]) + print("Y( {} ) = {}".format(x[100], y[100])) + print("Y( {} ) = {}".format(x[1000], y[1000])) + print("Y( {} ) = {}".format(x[4100], y[4100])) + print("Y( {} ) = {}".format(x[5000], y[5000])) .. testcleanup:: RemovePromptPulse diff --git a/docs/source/algorithms/RenameWorkspace-v1.rst b/docs/source/algorithms/RenameWorkspace-v1.rst index 1136c8eef40f2e85774b7f5058a3d82c42a11670..4efabee829bf96ea99db046da52646b97152ef73 100644 --- a/docs/source/algorithms/RenameWorkspace-v1.rst +++ b/docs/source/algorithms/RenameWorkspace-v1.rst @@ -56,7 +56,7 @@ Usage obj_inADS.sort() print("{0:20}|{1:>6}| With Names: |{2:>20}|{3:>20}|".format("Exist in ADS: ",len(obj_inADS),obj_inADS[0],obj_inADS[1])) - print("Old pointer to myWs refers to workspace with new name: ".format(myWs.name())) + print("Old pointer to myWs refers to workspace with new name: {}".format(myWs.name())) print("*********************************************************************") print("***** After renaming workspace and monitors workspace together:") # diff --git a/docs/source/algorithms/SANSBeamFluxCorrection-v1.rst b/docs/source/algorithms/SANSBeamFluxCorrection-v1.rst index d6b6e400cc715dabc8ff88c0272302af939b336c..8baca75e747581b552975384645228610a709df8 100644 --- a/docs/source/algorithms/SANSBeamFluxCorrection-v1.rst +++ b/docs/source/algorithms/SANSBeamFluxCorrection-v1.rst @@ -41,8 +41,8 @@ Usage # Do the correction, dragging in the file which contains the reference flux spectrum. corrected = SANSBeamFluxCorrection(ws, InputMonitorWorkspace=monitor, ReferenceFluxFilename="SANSBeamFluxCorrectionMonitor.nxs") - print "The expected value of each bin should be %s." % (0.1/(49152*0.1)/(49152*0.1)) - print "The actual value of the first bin is %s." % corrected[0].readY(0)[0] + print("The expected value of each bin should be {}.".format((0.1/(49152*0.1)/(49152*0.1)))) + print("The actual value of the first bin is {}.".format(corrected[0].readY(0)[0])) Output: