Permalink
Browse files

Set segment start directly rather than shift it

  • Loading branch information...
1 parent f80ff8d commit 143b1180538aae7ed65b5d795fba1e7f4dad5943 @hbredin hbredin committed May 9, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 pyannote/base/segment.py
View
5 pyannote/base/segment.py
@@ -615,11 +615,10 @@ def rangeToSegment(self, i0, n):
if i0 == 0:
# extend segment to the beginning of the timeline
- delta = segment.start - self.start
- segment = (delta << segment)
+ segment.start = self.start
return segment
-
+
def __iter__(self):
"""Sliding window iterator

0 comments on commit 143b118

Please sign in to comment.