Ticket #7362: ticket7362.py

File ticket7362.py, 1.1 KB (added by Peter Peterson, 7 years ago)
Line 
1""" Main test script for ticket 7362 """ 
2 
3Load(Filename=r'PG3_12007_event.nxs', OutputWorkspace='PG3_12007')
4
5FilterBadPulses(InputWorkspace='PG3_12007', OutputWorkspace='PG3_12007')
6
7# Output 2 workspaces
8AlignAndFocusPowder(InputWorkspace='PG3_12007', OutputWorkspace='PG3_12007_High', LowResTOFWorkspace="PG3_12007_Low", 
9                    CalFileName=r'/SNS/PG3/2013_1_11A_CAL/PG3_ILL_d12007_2013_01_09.cal',
10                    Params='-0.0004',DMin='0.1', DMax='2.2', TMax='16666.669999999998', 
11                    RemovePromptPulseWidth='50', LowResRef='15000') 
12
13EditInstrumentGeometry(Workspace="PG3_12007_High", SpectrumIDs = 1, L2 = 3.0,
14                       Polar = 90.0, Azimuthal = 0.0,  DetectorIDs = 1)
15
16EditInstrumentGeometry(Workspace="PG3_12007_Low", SpectrumIDs = 1, L2 = 3.0,
17                       Polar = 90.0, Azimuthal = 0.0,  DetectorIDs = 2)
18
19ConvertToMatrixWorkspace(InputWorkspace="PG3_12007_High", OutputWorkspace="PG3_12007_High") 
20ConvertToMatrixWorkspace(InputWorkspace="PG3_12007_Low", OutputWorkspace="PG3_12007_Low") 
21
22ConjoinWorkspaces(InputWorkspace1 = "PG3_12007_High", InputWorkspace2 = "PG3_12007_Low", CheckOverlapping=False)
23