Skip to content

Commit

Permalink
Correct testoutput for some algorithms. Refs #9585.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Jun 5, 2014
1 parent dfde727 commit 86e6dc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions Code/Mantid/docs/source/algorithms/ConvertToDistribution-v1.rst
Expand Up @@ -26,26 +26,25 @@ Usage
ws_multi = CreateSampleWorkspace("Histogram", "Multiple Peaks")

print "Is the workspace a distribution? " + str(ws_multi.isDistribution())

print "The workspace has a level backgound of " + str(ws_multi.readY(0)[0]) + " counts."
print "The largest of which is " + str(ws_multi.readY(0)[60]) + " counts."
print "The workspace has a level background of " + str(ws_multi.readY(0)[0]) + " counts."
print "The largest of which is " + str(ws_multi.readY(0)[60]) + " counts." + "\n"

ConvertToDistribution(ws_multi)

print "Is the workspace a distribution? " + str(ws_multi.isDistribution())
print "The workspace has a level backgound of " + str(ws_multi.readY(0)[0]) + " counts."
print "The workspace has a level background of " + str(ws_multi.readY(0)[0]) + " counts."
print "The largest of which is " + str(ws_multi.readY(0)[60]) + " counts."

Output:

.. testoutput:: ConvertToDistribution

Is the workspace a distribution? False
The workspace has a level backgound of 0.3 counts.
The workspace has a level background of 0.3 counts.
The largest of which is 8.3 counts.

Is the workspace a distribution? True
The workspace has a level backgound of 0.0015 counts.
The workspace has a level background of 0.0015 counts.
The largest of which is 0.0415 counts.

.. categories::
2 changes: 1 addition & 1 deletion Code/Mantid/docs/source/algorithms/UnwrapMonitor-v1.rst
Expand Up @@ -106,6 +106,6 @@ Output:

.. testoutput:: UnwrapMonitor

JoinWaveLength is: 1.4241722326403834
JoinWaveLength is: 1.42417223264

.. categories::

0 comments on commit 86e6dc6

Please sign in to comment.