How-To's‎ > ‎Simulation-Modeling‎ > ‎Mantid‎ > ‎

QENS 1D Fitting


Python scripts fitLorentzian.py and fitStretchedExFT.py fit each spectrum of the data using an experimental resolution function.
The Lorentzian script assumes a model: A * Resolution + B * Convolution( Resolution, Lorentzian ) + LinearBackground
The StretchedExFT script assumes a model: A * Resolution + B * Convolution( Resolution, StretchedExpFT ) + LinearBackground
The scripts can be run by loading the scripts in the "Script Window" of Mantid. Do View --> Script Window tand then do File --> Open (load the file) --> Execute All
Note: Before executing the scripts, edit them and change datadir to whatever directory you place the data and the resolution files.