Skip to content

Commit

Permalink
Update job_tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jiumao2 committed Sep 18, 2024
1 parent 0781a39 commit 41f4c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/core/job_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def divide_segment_into_chunks(num_frames, chunk_size):
n = num_frames // chunk_size

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

if (num_frames % chunk_size) > 0:
frame_starts.append(n * chunk_size)
Expand Down

0 comments on commit 41f4c31

Please sign in to comment.