Ticket #4328: cncs.py

File cncs.py, 658 bytes (added by Owen Arnold, 9 years ago)
Line 
1Load(Filename='CNCS_7860_event.nxs',OutputWorkspace='CNCS_7860_event')
2ConvertUnits(InputWorkspace='CNCS_7860_event',OutputWorkspace='CNCS_7860_event',Target='DeltaE',EMode='Direct',EFixed='3')
3Rebin(InputWorkspace='CNCS_7860_event',OutputWorkspace='CNCS_7860_event',Params='-1,0.05,3',PreserveEvents=False)
4SetUB(Workspace='CNCS_7860_event',a='3',b='4',c='5',u='0,1,0',v='1,0,0')
5
6for i in range(0,20,5):
7    CloneWorkspace(InputWorkspace='CNCS_7860_event',OutputWorkspace='preMDpart'+str(i))
8    AddSampleLog(Workspace='preMDpart'+str(i),LogName='Psi',LogText='0',LogType='Number Series')
9    SetGoniometer(Workspace='preMDpart'+str(i),Axis0='Psi,0,1,0,1')