I am using scipy.signal.find_peaks in a 8x150 array "signal" to find relative minima.
for example for row 1, I use
peaks = find_peaks(signal[