From 2a8bba95b99cccc3ff09db24228602b9f71127ce Mon Sep 17 00:00:00 2001 From: Yiming Wang Date: Mon, 23 Nov 2020 09:46:16 -0500 Subject: [PATCH] populate recording_id for Cut when using Cut.compute_and_store_features() (#147) --- lhotse/cut.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lhotse/cut.py b/lhotse/cut.py index 11d7a2751..cc0a47053 100644 --- a/lhotse/cut.py +++ b/lhotse/cut.py @@ -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: