1 | |
---|
2 | from mantid.simpleapi import * |
---|
3 | from isis_reflectometry import quick |
---|
4 | reload(quick) |
---|
5 | |
---|
6 | |
---|
7 | config['default.instrument'] = 'INTER' |
---|
8 | LoadISISNexus(Filename='13463', OutputWorkspace='13463') |
---|
9 | LoadISISNexus(Filename='13464', OutputWorkspace='13464') |
---|
10 | LoadISISNexus(Filename='13460', OutputWorkspace='13460') |
---|
11 | |
---|
12 | transmissionRuns = '13463,13464' |
---|
13 | runNo = '13460' |
---|
14 | incidentAngle = 0.7 |
---|
15 | |
---|
16 | # Part 1. Create Transmission runs implicitly as well as performing conversion. |
---|
17 | quick.quick(runNo, trans=transmissionRuns) |
---|
18 | implicit = mtd['13460_IvsLam'].clone() |
---|
19 | |
---|
20 | # Part 2b. Use the transmission run in quick. |
---|
21 | transmission_ws = quick.make_trans_corr(transmissionRuns,10, 12, [1.5, 0.02, 17]) |
---|
22 | quick.quick(runNo, trans=transmission_ws) |
---|
23 | explicit = mtd['13460_IvsLam'].clone() |
---|
24 | |
---|
25 | # Compare the results of part 1 and 2 |
---|
26 | plotSpectrum([implicit, explicit], [0]) |
---|
27 | |
---|
28 | |
---|
29 | |
---|