Ticket #7965: test_Quest.py

File test_Quest.py, 748 bytes (added by Samuel Jackson, 7 years ago)

Script for testing Quest

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