Ticket #8089: verify8089_01.py

File verify8089_01.py, 997 bytes (added by Wenduo Zhou, 7 years ago)
Line 
1# Load file and create input workspaces
2LoadAscii(Filename="PG3_15035-3.dat", OutputWorkspace="PG3_15035", Unit="TOF")
3
4CreateLeBailFitInput(FullprofParameterFile=r'pg3_bank3_step_b40k.irf',GenerateBraggReflections='1',
5        LatticeConstant='4.1568899999999998',InstrumentParameterWorkspace='PG3_Bank3',BraggPeakParameterWorkspace='ReflectionTable')
6
7Load(Filename="PG3_15035_BkgdParameters.nxs", OutputWorkspace="PG3_15035_BkgdParameters")
8
9# Set up sequential refinement
10RefinePowderDiffProfileSeq(
11        InputWorkspace  = "PG3_15035",
12        WorkspaceIndex  = 0,
13        InputProfileWorkspace = "PG3_Bank3",
14        InputBraggPeaksWorkspace = "ReflectionTable",
15        InputBackgroundParameterWorkspace = "PG3_15035_BkgdParameters",
16        StartX  = 10000.,
17        EndX    = 79000.,
18        FunctionOption = "Setup",
19        ProfileType = "Thermal neutron Back-to-back exponential convoluted with pseudo-voigt",
20        BackgroundType = "Polynomial",
21        ProjectID   = "Test001")
22