Ticket #438: rob-distributionproblem.py

File rob-distributionproblem.py, 991 bytes (added by Russell Taylor, 11 years ago)

The file showing the problem. Should end up with a flat line - didn't used to.

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