ewoksxas.fit.tests.conftest#
Shared fixtures synthesising ground-truth peaks for the peak-fit tests.
Peaks are built from silx’s own profile functions (the engine behind the fit),
on a noiseless grid, so the fitted center, area, width(s) and mixing are known
exactly. peak_factory returns (y, truth) where truth holds the
descriptors the fit should recover. An independent lmfit-based Gaussian oracle
(lmfit_gaussian) guards against testing silx purely against itself.
Functions
|
|
|
|
|
|
|
|
An independent (lmfit) Gaussian oracle: |
|
Return a factory building a sum of well-separated Gaussian peaks. |
|
|
Return a factory building a ground-truth peak and its descriptors. |
|
|
|
|
|
A fine, wide x-grid so even broad asymmetric tails decay at the edges. |