ewoksfluo.xrffit.legacy.fit.perform_batch_fit#
- ewoksfluo.xrffit.legacy.fit.perform_batch_fit(xrf_spectra_uris, pymca_configuration, output_buffer, energy=None, energy_multiplier=None, mlines=None, quantification=None, fast_fitting=False)[source]#
Fit XRF spectra in batch with one primary beam energy. Least-square fitting. If you intend a linear fit, modify the configuration:
Get current energy calibration with “Load From Fit”
Enable: Perform a Linear Fit
Disable: Stripping
Strip iterations = 0
Fast linear least squares:
Use SNIP instead of STRIP
- Parameters:
xrf_spectra_uris (
Sequence[str]) – spectra to fit.pymca_configuration (
Union[str,PyMcaXrfConfiguration]) – configuration file to use.output_buffer – object that receives the fit results.
energy (
Optional[float]) – primary beam energy. Defaults to None.mlines (
Optional[dict]) – elements (keys) which M line group must be replaced by some M subgroups (values). Defaults to None.quantification (
Union[Dict[str,float],bool,None]) – save massfractions. Defaults to False.fast_fitting (
bool) – use SNIP instead of STRIP. Defaults to False.diagnostics – fit model and residuals. Defaults to False.
figuresofmerit – chi-square value and other figures of merit. Defaults to False.
energy_multiplier (
Optional[float]) – adds a higher energy bound equal to energy*energy_multiplier to include high-energy peaks. Default: no bound is added.
- Raises:
ValueError – if all paths in filelist do not have the same HDF5 group as parent.
- Return type:
None