Using the regular method of multiplying the array by minus one would not keep the desired distance threshold, so how can this be done?
import scipy peaks = scipy.