FindPeaks
Automatic peak finding for 2D SEC-SAS data.
- class find_peaks.FindPeaks(data, height_factor=0.5)
Finds the peaks in a time series from a 2D SEC-SAS dataset.
- Parameters
data (
sample.Sample
) – An instance ofsample.Sample
containing a 2D dataset where the first axis is assumed to be the elution time and the second axis is assumed to be the momentum transfer q values.height_factor (float) – A float between 0 and 1. This will be used to define the minimum height of the peak by taking height = height_factor * data.max().
- get_sub_arrays()
Return the array corresponding to the region within peak borders.
- run(find_peaks_kws=None, peak_widths_kws=None)
Run the algorithm to find the peaks and associated widths.
- Parameters
find_peaks_kws (dict) – Additional keywords to be passed to scipy find_peaks keywords.
peak_widths_kws (dict) – Additional keywords to be passed to scipy peak_widths keywords.