Peak Finding and Fitting

Peak fitting

Once peaks are found, PeakFit (and AdvancedFit for overlapping peaks) decompose the spectrum into Gaussian components on top of a background model.

from wara import PeakFit

pf = PeakFit(sp, ps.peaks)
pf.fit()
pf.plot()
print(pf.results)

For full API details see the API reference for wara.peaksearch and wara.peakfit.