From 5dbea3bf046ca63e0baab8348d03b85f8b1a9f62 Mon Sep 17 00:00:00 2001 From: Karl Palmen Date: Fri, 20 Jun 2014 09:25:27 +0100 Subject: [PATCH] Work on SumRowColumn-v1.rst re #9567 Signed-off-by: Karl Palmen --- .../source/algorithms/SumRowColumn-v1.rst | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Code/Mantid/docs/source/algorithms/SumRowColumn-v1.rst b/Code/Mantid/docs/source/algorithms/SumRowColumn-v1.rst index bf2f03b29e8d..526e2d183d66 100644 --- a/Code/Mantid/docs/source/algorithms/SumRowColumn-v1.rst +++ b/Code/Mantid/docs/source/algorithms/SumRowColumn-v1.rst @@ -22,4 +22,26 @@ ChildAlgorithms used The :ref:`algm-Integration` algorithm is used to sum up each spectrum between XMin & XMax. +Usage +----- +**Example - Sum rows of a 128*128 workspace** + +.. testcode:: ExSumRowColumnSimple + + # Create a workspace with 128*128 spectra each with 5 values (only 128*128 or 192*192 are valid) + ws = CreateSampleWorkspace("Histogram", NumBanks=1, BankPixelWidth=128, BinWidth=10, Xmax=50) + + # Run algorithm with Horizontal orientation + OutputWorkspace = SumRowColumn( ws, "D_H") + + print "Input workspace has",ws.getNPoints(),"points." + print "Output workspace has",OutputWorkspace.getNPoints(),"points." + +Output: + +.. testoutput:: ExSumRowColumnSimple + + Input workspace has 81920 points. + Output workspace has 128 points. + .. categories::