Skip to content

Commit

Permalink
Fix trim_to_supervision_groups (#1322)
Browse files Browse the repository at this point in the history
Fix trim_to_supervision_groups
  • Loading branch information
pzelasko authored Apr 23, 2024
1 parent bfce956 commit 9bf1b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lhotse/cut/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def trim_to_supervision_groups(
from .set import CutSet

if not self.supervisions:
return self
return CutSet([self])
supervisions = sorted(self.supervisions, key=lambda s: s.start)
supervision_group = [supervisions[0]]
cur_end = supervisions[0].end
Expand Down

0 comments on commit 9bf1b8f

Please sign in to comment.