easistrain.func_fitting_peaks.fit¶
- easistrain.func_fitting_peaks.fit(root_data, h5file, scan, tth_min, tth_max, bgd_left, bgd_right, fct, hkl, Rp)[source]¶
Fit a hkl peak saved in a result h5file and save the results in the same h5 file. The results if the fit are saved in the ‘fitting’ group.
- Parameters:
root_data – the path of the file where the h5 file is saved
h5file – the name of the h5 file where the results are saved
tth_min – 2theta start
tth_max – 2theta end
bgd_left – number of point to take at left (at the beginning of the tth range) for background fitting
bgd_right – number of point to take at right (at the end of the tth range) for background fitting
fct – the name of function to use for peak fitting: PVII, gauss, Lorentz or Ps
hkl – crystallographic plane to fit