Skip to content

Commit

Permalink
re #9638 Usage example for AbsorptionCorrection
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDraper committed Jun 13, 2014
1 parent b968164 commit 40f5f6b
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -82,11 +82,12 @@ Usage
<radius val="0.1" />
</sphere>'''

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)

Expand Down

0 comments on commit 40f5f6b

Please sign in to comment.