From ac6a7c0d2c5d07b9f99b9390734b1d240dc4169e Mon Sep 17 00:00:00 2001 From: pauladkisson Date: Mon, 25 Sep 2023 14:56:42 -0700 Subject: [PATCH] fixed typo in get_video --- .../tiffimagingextractors/scanimagetiffimagingextractor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/roiextractors/extractors/tiffimagingextractors/scanimagetiffimagingextractor.py b/src/roiextractors/extractors/tiffimagingextractors/scanimagetiffimagingextractor.py index 98738c4c..520f6625 100644 --- a/src/roiextractors/extractors/tiffimagingextractors/scanimagetiffimagingextractor.py +++ b/src/roiextractors/extractors/tiffimagingextractors/scanimagetiffimagingextractor.py @@ -550,8 +550,8 @@ def get_video(self, start_frame=None, end_frame=None) -> np.ndarray: (j - start_frame_in_cycle) * self._num_channels + (i + bool(start_left_in_cycle)) * self._num_raw_per_cycle ) - for j in range(end_left_in_cycle): # Add remaining frames from last (incomplete) cycle - index.append(j - start_frame_in_cycle) * self._num_channels + num_cycles * self._num_raw_per_cycle + for j in range(end_left_in_cycle): # Add remaining frames from last (incomplete) cycle) + index.append((j - start_frame_in_cycle) * self._num_channels + num_cycles * self._num_raw_per_cycle) video = raw_video[index] return video