Skip to content

Commit

Permalink
fix last window
Browse files Browse the repository at this point in the history
  • Loading branch information
LaraFuhrmann committed Apr 25, 2024
1 parent c9dabb8 commit 5ad106e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions viloca/tiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ad106e

Please sign in to comment.