Ticket #4328: mari.py

File mari.py, 1.1 KB (added by Owen Arnold, 9 years ago)
Line 
1workspace_name = 'MAR11001';
2#workspace_name = 'MARI11001';
3Load(Filename='MAR11001.RAW',OutputWorkspace=workspace_name)
4#ConvertUnits(InputWorkspace='MARI11001',OutputWorkspace='',Target='DeltaE',EMode='Direct',EFixed='3')
5AddSampleLog(Workspace=workspace_name,LogName='phi',LogText='0',LogType='Number Series')
6AddSampleLog(Workspace=workspace_name,LogName='chi',LogText='0',LogType='Number Series')
7AddSampleLog(Workspace=workspace_name,LogName='omega',LogText='10',LogType='Number Series')
8
9GetEi(InputWorkspace=workspace_name,Monitor1Spec='2',Monitor2Spec='3',EnergyEstimate='13')
10#Rebin(InputWorkspace='MARI11001',OutputWorkspace='s1',Params='-2.9,0.05,2.9',PreserveEvents='0')
11try:
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')
15except e:
16    mtd.sendErrorMessage(e)