ewoksxas.fit.tests.test_peak_fit#

Tests for the peak-fitting module ewoksxas.fit.peak_fit.

Peaks are synthesised from silx’s own profile functions on a noiseless grid (see conftest), so the fitted center, area, width(s) and mixing are known exactly. The Strip/Snip backgrounds are silx’s data-derived peak-stripping filters: with a filter width suited to the peak they recover the truth, so their tests pass tuned widths; at unsuited widths the filter absorbs part of a broad peak, which is inherent to those backgrounds (the widths are user-tunable in the GUI).

Functions