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