Skip to content

Commit dcce25a

Browse files
Update src/spikeinterface/sortingcomponents/motion_interpolation.py
Co-authored-by: Alessio Buccino <alejoe9187@gmail.com>
1 parent 266be6f commit dcce25a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spikeinterface/sortingcomponents/motion_interpolation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def get_traces(self, start_frame, end_frame, channel_indices):
392392
if end_frame is None:
393393
end_frame = self.get_num_samples()
394394

395-
times = np.arange((end_frame or self.get_num_samples()) - (start_frame or 0), dtype="float64")
395+
times = np.arange(end_frame - start_frame, dtype="float64")
396396
times /= self.sampling_frequency
397397
t0 = start_frame / self.sampling_frequency
398398
# if self.t_start is not None:

0 commit comments

Comments
 (0)