Closed kay-ro closed 1 week ago
when the supplied dataset has a maximum at the border (left in the example), this maximum is not correctly detected.
from scipy import signal x=np.linspace(-1,1,10000) avydata=x**2 height=.1 distance=1 width=1 first, second, y,x=amep.utils.detect2peaks(x, avydata, width=0, nav=1) ind, other = signal.find_peaks(avydata, height=height, distance=distance, width=width)
none - the correct peaks are not detected when they are global maxima at the boundary.
amep 1.0.3
No response
None
Description:
when the supplied dataset has a maximum at the border (left in the example), this maximum is not correctly detected.
Code for reproduction:
Error message:
none - the correct peaks are not detected when they are global maxima at the boundary.
Python and AMEP versions:
amep 1.0.3
Additional information:
No response
How did you install AMEP?
None