code: def get_signal_peaks_and_prominences(data):
      
      peaks, _ = sig.find_peaks(data)
      prominences = sig.peak_prominences(data, peaks)[0]
          
      return peaks, prominences
docs: Get the signal peaks and peak prominences.
          
          :param data array: One-dimensional array.
          
          :return peaks array: The peaks of our signal.
          :return prominences array: The prominences of the peaks.