[SciPy-Dev] Finding signal upcrossings and declustered peaks