| 1 | ###################################################################### |
|---|
| 2 | #Python Script Generated by GeneratePythonScript Algorithm |
|---|
| 3 | ###################################################################### |
|---|
| 4 | # Load and process event data |
|---|
| 5 | Load(Filename=r'PG3_2538_event.nxs',OutputWorkspace='PG3_2538_event') |
|---|
| 6 | Rebin(InputWorkspace='PG3_2538_event',OutputWorkspace='PG3_2538_event',Params='-0.0001') |
|---|
| 7 | ConvertUnits(InputWorkspace='PG3_2538_event',OutputWorkspace='PG3_2538_event',Target='dSpacing') |
|---|
| 8 | |
|---|
| 9 | # Fit peak |
|---|
| 10 | FitPeak(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') |
|---|