Skip to content

Commit

Permalink
populate recording_id for Cut when using Cut.compute_and_store_featur…
Browse files Browse the repository at this point in the history
…es() (#147)
  • Loading branch information
freewym authored Nov 23, 2020
1 parent 8dbebc4 commit 2a8bba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lhotse/cut.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class Cut(CutUtilsMixin):

@property
def recording_id(self) -> str:
return self.features.recording_id if self.has_features else self.recording.id
return self.recording.id if self.has_recording else self.features.recording_id

@property
def end(self) -> Seconds:
Expand Down

0 comments on commit 2a8bba9

Please sign in to comment.