I\'m trying to understand what exactly the code below does, but it isn\'t easy. Its final goal is to detect onsets in the signal by taking np.diff(ifr). But, I cannot