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