Skip to content
Snippets Groups Projects
Commit d32c5253 authored by Brandon Hewer's avatar Brandon Hewer
Browse files

Remove all doctest errors

Refs #20818
parent 814a91ac
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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:")
#
......
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment