Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Set segment start directly rather than shift it

  • Loading branch information...
commit 143b1180538aae7ed65b5d795fba1e7f4dad5943 1 parent f80ff8d
Hervé BREDIN authored

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 3 pyannote/base/segment.py
5 pyannote/base/segment.py
@@ -615,11 +615,10 @@ def rangeToSegment(self, i0, n):
615 615
616 616 if i0 == 0:
617 617 # extend segment to the beginning of the timeline
618   - delta = segment.start - self.start
619   - segment = (delta << segment)
  618 + segment.start = self.start
620 619
621 620 return segment
622   -
  621 +
623 622 def __iter__(self):
624 623 """Sliding window iterator
625 624

0 comments on commit 143b118

Please sign in to comment.
Something went wrong with that request. Please try again.