Ticket #7364: problem.py

File problem.py, 1.0 KB (added by Wenduo Zhou, 7 years ago)
Line 
1 """ Main test script for ticket 7333 """ 
2 
3Load(Filename=r'PG3_4844_event.nxs', OutputWorkspace='PG3_4844')
4
5inws = mtdP[G3_4844]
6
7FilterBadPulses(InputWorkspace='PG3_4844', OutputWorkspace='PG3_4844')
8
9# Output 2 workspaces
10AlignAndFocusPowder(InputWorkspace='PG3_4844', OutputWorkspace='PG3_4844_High', LowResTOFWorkspace="PG3_4844_Low", 
11        CalFileName=r'PG3_FERNS_d4832_2011_08_24.cal', Params='-0.0004',DMin='0.1', DMax='2.2', TMax='16666.669999999998', 
12        RemovePromptPulseWidth='50', LowResRef='15000') 
13
14#
15EditInstrumentGeometry(Workspace="PG3_4844_High", SpectrumIDs = 1, L2 = 3.0,
16        Polar = 90.0, Azimuthal = 0.0,  DetectorIDs = 1)
17
18EditInstrumentGeometry(Workspace="PG3_4844_Low", SpectrumIDs = 1, L2 = 3.0,
19        Polar = 90.0, Azimuthal = 0.0,  DetectorIDs = 2)
20
21if True:
22        ConvertToMatrixWorkspace(InputWorkspace="PG3_4844_High", OutputWorkspace="PG3_4844_High") 
23        ConvertToMatrixWorkspace(InputWorkspace="PG3_4844_Low", OutputWorkspace="PG3_4844_Low") 
24
25ConjoinWorkspaces(InputWorkspace1 = "PG3_4844_High", InputWorkspace2 = "PG3_4844_Low")
26