Ticket #8646: test8646b.py

File test8646b.py, 861 bytes (added by Wenduo Zhou, 7 years ago)
Line 
1######################################################################
2#Python Script Generated by GeneratePythonScript Algorithm
3######################################################################
4# Load and process event data
5Load(Filename=r'PG3_2538_event.nxs',OutputWorkspace='PG3_2538_event')
6Rebin(InputWorkspace='PG3_2538_event',OutputWorkspace='PG3_2538_event',Params='-0.0001')
7ConvertUnits(InputWorkspace='PG3_2538_event',OutputWorkspace='PG3_2538_event',Target='dSpacing')
8
9# Fit peak
10FitPeak(InputWorkspace='PG3_2538_event',OutputWorkspace='peak5_model',ParameterTableWorkspace='peak5_parameters',
11        WorkspaceIndex='22000',PeakFunctionType='Gaussian (Height, PeakCentre, Sigma)',PeakParameterValues='1,1.26,0.01',
12        BackgroundType='Linear (A0, A1)',BackgroundParameterValues='0,0',FitWindow='1.2,1.35',PeakRange='1.25,1.28',FitBackgroundFirst='0')