Reverdt side of searchsorted
@@ -222,7 +222,7 @@ def _spike_amplitudes_chunk(segment_index, start_frame, end_frame, worker_ctx):
assert np.all(d >= 0)
i0 = np.searchsorted(spike_times, start_frame)
- i1 = np.searchsorted(spike_times, end_frame, side="right")
+ i1 = np.searchsorted(spike_times, end_frame)
n_spikes = i1 - i0
amplitudes = np.zeros(n_spikes, dtype=recording.get_dtype())
