ewoksxas.tasks.tests.test_peak_fit#
Tests for the PeakFitting task.
The task wraps ewoksxas.fit.peak_fit.PeakModel: it fits every spectrum in the input table and returns the fitted model curves with the peak descriptors as metadata. Spectra are exact (noiseless) peaks on a known baseline, so the recovered center/area and fit quality (r2 ~ 1) are known in advance. Gaussians are generated with lmfit (an independent oracle, identical maths to silx); shapes that differ between the two libraries (pseudo-Voigt) use silx’s own profile functions.
Functions
|