Peaks.Recognizer#
Peaks.Recognizer.py
Copyright (c) 2024-2025, SAXS Team, KEK-PF
- get_peak_positions(icurve, debug=False, **kwargs)#
Get peak positions from an ICurve object.
It customizes scipy.signal.find_peaks so that it can find chromatographic peaks properly in the curve. By ‘properly’, it means that it can find not too many, but not too few either. That is, without this customization, it tends to find too many (or too few) peaks, which is not desirable.
- Parameters:
icurve (ICurve) – The input curve from which to find peaks.
- Returns:
A list of indices where peaks are found in the curve.
- Return type:
list