Skip to content

Commit 41f4c31

Browse files
committed
Update job_tools.py
1 parent 0781a39 commit 41f4c31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/spikeinterface/core/job_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def divide_segment_into_chunks(num_frames, chunk_size):
137137
n = num_frames // chunk_size
138138

139139
frame_starts = [i * chunk_size for i in range(n)]
140-
frame_stops = [(i + 1) * chunk_size for i in range(n)]
140+
frame_stops = [frame_start + chunk_size for frame_start in frame_starts]
141141

142142
if (num_frames % chunk_size) > 0:
143143
frame_starts.append(n * chunk_size)

0 commit comments

Comments
 (0)