1 | ###################################################################### |
---|
2 | #Python Script Generated by Algorithm History Display |
---|
3 | ###################################################################### |
---|
4 | LoadRaw(Filename="OFFSPEC00005588.raw",OutputWorkspace="OFFSPEC00005588",LoadLogFiles="0") |
---|
5 | ConvertUnits(InputWorkspace="OFFSPEC00005588",OutputWorkspace="5588lambda",Target="Wavelength") |
---|
6 | CropWorkspace(InputWorkspace="5588lambda",OutputWorkspace="5588spec113",StartWorkspaceIndex="113",EndWorkspaceIndex="113") |
---|
7 | Divide(LHSWorkspace="5588spec113",RHSWorkspace="5588spec113",OutputWorkspace="unitywksp") |
---|
8 | ReplaceSpecialValues(InputWorkspace="unitywksp",OutputWorkspace="unitywksp",NaNValue="1",NaNError="1",InfinityValue="1",InfinityError="1") |
---|
9 | ws = ConvertUnits(InputWorkspace="unitywksp",OutputWorkspace="unityQ",Target="MomentumTransfer").workspace() |
---|
10 | print ws.isDistribution() |
---|
11 | Rebin(InputWorkspace="unityQ",OutputWorkspace="test1",Params="0.007,-0.01,5") |
---|
12 | #ConvertToDistribution(Workspace="test1") |
---|