ewoksxas.fit.silx_engine.descriptors_from_fit_results#

ewoksxas.fit.silx_engine.descriptors_from_fit_results(fit_results, family, asymmetric)[source]#

Return the per-peak descriptors from silx fit_results.

Each peak (silx group >= 1; group 0 holds the background parameters) yields a descriptor dict with center, center_stderr, height, area, area_stderr and the shape-dependent width(s): a single fwhm for symmetric peaks, per-side fwhm_low/fwhm_high for asymmetric ones, plus eta for the Voigt family. The peaks are returned in silx order (left to right ordering is done by the caller).

Args:

fit_results: silx FitManager.fit_results after runfit. family: Profile family of the fitted shape. asymmetric: Whether the shape reports per-side widths.

Parameters:
  • fit_results (list[dict])

  • family (str)

  • asymmetric (bool)

Return type:

list[dict[str, float]]