highiq.calc.calc_num_peaks

highiq.calc.calc_num_peaks(my_spectra, **kwargs)[source]

This function will calculate the number of peaks in the spectra.

Parameters
my_spectra: ACT Dataset

The dataset to calculate the number of peaks for.

kwargs:

Additional keyword arguments are passed into scipy.signal.find_peaks(). The default minimum height and width of the peak are set to 3 and 8 points respectively.

Returns
my_spectra: ACT Dataset

The dataset with an ‘npeaks’ variable included that shows the number of peaks.