From 40f5f6b65841b6b3a3691e45305e1eeb4bb736b4 Mon Sep 17 00:00:00 2001 From: Nick Draper Date: Fri, 13 Jun 2014 15:07:46 +0100 Subject: [PATCH] re #9638 Usage example for AbsorptionCorrection --- .../docs/source/algorithms/AbsorptionCorrection-v1.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Code/Mantid/docs/source/algorithms/AbsorptionCorrection-v1.rst b/Code/Mantid/docs/source/algorithms/AbsorptionCorrection-v1.rst index 8a3a0c8f6842..ed3879d662de 100644 --- a/Code/Mantid/docs/source/algorithms/AbsorptionCorrection-v1.rst +++ b/Code/Mantid/docs/source/algorithms/AbsorptionCorrection-v1.rst @@ -82,11 +82,12 @@ Usage ''' - ws = CreateSampleWorkspace("Histogram",NumBanks=1) + ws = CreateSampleWorkspace("Histogram",NumBanks=1,BankPixelWidth=1) ws = ConvertUnits(ws,"Wavelength") + ws = Rebin(ws,Param=[1]) CreateSampleShape(ws,sphere) SetSampleMaterial(ws,ChemicalFormula="V") - + #restrict the number of wavelength points to speed up the example wsOut = AbsorptionCorrection(ws,NumberOfWavelengthPoints=5)