1 | """ Main test script for ticket 7333 """ |
---|
2 | |
---|
3 | Load(Filename=r'PG3_4844_event.nxs', OutputWorkspace='PG3_4844') |
---|
4 | |
---|
5 | inws = mtdP[G3_4844] |
---|
6 | |
---|
7 | FilterBadPulses(InputWorkspace='PG3_4844', OutputWorkspace='PG3_4844') |
---|
8 | |
---|
9 | # Output 2 workspaces |
---|
10 | AlignAndFocusPowder(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 | # |
---|
15 | EditInstrumentGeometry(Workspace="PG3_4844_High", SpectrumIDs = 1, L2 = 3.0, |
---|
16 | Polar = 90.0, Azimuthal = 0.0, DetectorIDs = 1) |
---|
17 | |
---|
18 | EditInstrumentGeometry(Workspace="PG3_4844_Low", SpectrumIDs = 1, L2 = 3.0, |
---|
19 | Polar = 90.0, Azimuthal = 0.0, DetectorIDs = 2) |
---|
20 | |
---|
21 | if True: |
---|
22 | ConvertToMatrixWorkspace(InputWorkspace="PG3_4844_High", OutputWorkspace="PG3_4844_High") |
---|
23 | ConvertToMatrixWorkspace(InputWorkspace="PG3_4844_Low", OutputWorkspace="PG3_4844_Low") |
---|
24 | |
---|
25 | ConjoinWorkspaces(InputWorkspace1 = "PG3_4844_High", InputWorkspace2 = "PG3_4844_Low") |
---|
26 | |
---|