ewoksxas.fit.silx_engine.make_fit_manager#

ewoksxas.fit.silx_engine.make_fit_manager(curated_backgrounds=False)[source]#

Return a FitManager carrying the curated peak theories.

The standard silx backgrounds (No Background, Constant, Linear, Strip, Snip, polynomials) are loaded by FitManager itself; this registers only the peak theories we map to descriptors, and swaps Strip/Snip for the safely cached replacements (strip_theory()/snip_theory()). Shared by the headless backend and the interactive FitWidget so both run the same fit.

Args:
curated_backgrounds: Keep only SUPPORTED_BACKGROUNDS, dropping

the polynomial backgrounds (used by the widget to keep the GUI selection meaningful for spectroscopy).

Parameters:

curated_backgrounds (bool)

Return type:

FitManager