From 41f4c311398cb909207535e3fcf2a373c850dafd Mon Sep 17 00:00:00 2001 From: Yue Huang <806628409@qq.com> Date: Thu, 19 Sep 2024 04:35:21 +0800 Subject: [PATCH] Update job_tools.py --- src/spikeinterface/core/job_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spikeinterface/core/job_tools.py b/src/spikeinterface/core/job_tools.py index 3cd7313b76..5240edcee7 100644 --- a/src/spikeinterface/core/job_tools.py +++ b/src/spikeinterface/core/job_tools.py @@ -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)