spikes_seconds are calculated assuming a fixed sampling frequency. Needs a solution when that is not the case, too.