Ticket #8639: quick_make_trans_corr.py

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