Ticket #7827: ConvertToMDUnitTests.py

File ConvertToMDUnitTests.py, 1.2 KB (added by Owen Arnold, 7 years ago)
Line 
1SXD23767 = Load(Filename='SXD23767.raw', LoadMonitors='Exclude')
2
3QLab=ConvertToMD( InputWorkspace=SXD23767, QDimensions="Q3D",
4                    dEAnalysisMode="Elastic", QConversionScales="Q in A^-1",
5                    LorentzCorrection='1', MinValues=[-15,-15,-15], MaxValues=[15,15,15],
6                    SplitInto='2', SplitThreshold='50',MaxRecursionDepth='14' )
7
8peaks_qLab = FindPeaksMD(InputWorkspace=QLab, MaxPeaks=300, DensityThresholdFactor=10,PeakDistanceThreshold=1.0)
9
10FindUBUsingFFT(PeaksWorkspace=peaks_qLab, MinD='3', MaxD='5',Tolerance=0.08)
11
12IndexPeaks(PeaksWorkspace=peaks_qLab,Tolerance=0.12,RoundHKLs=1)
13
14CopySample(InputWorkspace=peaks_qLab, OutputWorkspace=SXD23767, CopyLattice=True, CopyName=False, CopyShape=False, CopyMaterial=False,CopyEnvironment=False)
15
16AddSampleLog(Workspace='SXD23767',LogName='phi',LogText='0',LogType='Number')
17AddSampleLog(Workspace='SXD23767',LogName='chi',LogText='0',LogType='Number')
18AddSampleLog(Workspace='SXD23767',LogName='omega',LogText='0',LogType='Number')
19SetGoniometer(Workspace='SXD23767',Goniometers='Universal')
20
21ConvertToMD(InputWorkspace='SXD23767',OutputWorkspace='HKL',QDimensions='Q3D',dEAnalysisMode='Elastic',Q3DFrames='HKL',QConversionScales='HKL',MinValues='-10,-10,-10',MaxValues='10,10,10')
22