Ticket #7965: test_Qlines.py

File test_Qlines.py, 764 bytes (added by Samuel Jackson, 7 years ago)

Script for testing QLines

Line 
1import IndirectBayes as Main
2
3nbins = ['1', '1']
4sname = 'irs26176_graphite002_red'
5rname = 'irs26173_graphite002_res'
6rsname = 'irs26173_graphite002_ResNorm'
7wfile = ''
8erange = [-0.5, 0.5]
9fitOp = [True, 'Sloping', False, True] #elastic, background, width, resnorm
10loopOp = True
11verbOp = True
12plotOp = False
13saveOp = False
14
15spath = sname+'.nxs'    # path name for sample nxs file
16LoadNexusProcessed(Filename=spath, OutputWorkspace=sname)
17rpath = rname+'.nxs'    # path name for res nxs file
18LoadNexusProcessed(Filename=rpath, OutputWorkspace=rname)
19rspath = rsname+'_Paras.nxs'    # path name for resNorm nxs file
20LoadNexusProcessed(Filename=rspath, OutputWorkspace=rsname)
21Main.QLRun('QL',sname,rname,rsname,erange,nbins,fitOp,wfile,loopOp,verbOp,plotOp,saveOp)