1 | workspace_name = 'MAR11001'; |
---|
2 | #workspace_name = 'MARI11001'; |
---|
3 | Load(Filename='MAR11001.RAW',OutputWorkspace=workspace_name) |
---|
4 | #ConvertUnits(InputWorkspace='MARI11001',OutputWorkspace='',Target='DeltaE',EMode='Direct',EFixed='3') |
---|
5 | AddSampleLog(Workspace=workspace_name,LogName='phi',LogText='0',LogType='Number Series') |
---|
6 | AddSampleLog(Workspace=workspace_name,LogName='chi',LogText='0',LogType='Number Series') |
---|
7 | AddSampleLog(Workspace=workspace_name,LogName='omega',LogText='10',LogType='Number Series') |
---|
8 | |
---|
9 | GetEi(InputWorkspace=workspace_name,Monitor1Spec='2',Monitor2Spec='3',EnergyEstimate='13') |
---|
10 | #Rebin(InputWorkspace='MARI11001',OutputWorkspace='s1',Params='-2.9,0.05,2.9',PreserveEvents='0') |
---|
11 | try: |
---|
12 | #ConvertToMDEvents(InputWorkspace=workspace_name,OutputWorkspace='ss',UsePreprocessedDetectors='1',QDimensions="QxQyQz",OtherDimensions='',dEAnalysisMode="Direct",MinValues='-10,-10,-10,-2',MaxValues='10,10,10,10') |
---|
13 | CloneWorkspace(InputWorkspace='MAR11001',OutputWorkspace='MAR11002') |
---|
14 | CloneWorkspace(InputWorkspace='MAR11001',OutputWorkspace='MAR11003') |
---|
15 | except e: |
---|
16 | mtd.sendErrorMessage(e) |
---|