fix(missing method): adding missing add_microphones_recordings method in LeRobotDataset

This commit is contained in:
CarolinePascal
2026-04-29 16:17:40 +02:00
parent a201b33d20
commit e6e54391bd
+8
View File
@@ -386,6 +386,14 @@ class LeRobotDataset(torch.utils.data.Dataset):
self._require_writer("add_frame")
self.writer.add_frame(frame)
def add_microphones_recordings(self, microphones: dict) -> None:
"""Add microphone recordings to the current episode buffer.
Delegates to :meth:`DatasetWriter.add_microphones_recordings`.
"""
self._require_writer("add_microphones_recordings")
self.writer.add_microphones_recordings(microphones)
def save_episode(self, episode_data: dict | None = None, parallel_encoding: bool = True) -> None:
"""Save the current episode buffer to disk.