From 5ad106e6d45a40de07f6e311903d0b3a48d23b3a Mon Sep 17 00:00:00 2001 From: LaraFuhrmann <55209716+LaraFuhrmann@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:10:03 +0200 Subject: [PATCH] fix last window --- viloca/tiling.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/viloca/tiling.py b/viloca/tiling.py index fef0e02..9c2518e 100644 --- a/viloca/tiling.py +++ b/viloca/tiling.py @@ -119,12 +119,8 @@ def get_window_tilings(self) -> List[Tuple[int, int]]: # add one more window at the end if self.exact_conformance_overlap_at_boundary == True: window_positions.append(window_positions[-1] + self.incr) - - tiling = [(i, self.window_length) for i in window_positions] - if tiling[-1][0] + tiling[-1][1] >= self.end: - tiling[-1][1] = self.end-1 -tiling[-1][0] - - return tiling + + return [(i, self.window_length) for i in window_positions] def get_reference_name(self): return self.reference_name