chore(busy_wait): renaming busy_wait into precise_sleep

This commit is contained in:
CarolinePascal
2025-12-25 18:36:39 +01:00
parent 3399513e5e
commit 5cd3572713
7 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ from lerobot.microphones.utils import (
make_microphones_from_configs,
)
from lerobot.utils.robot_utils import (
busy_wait,
precise_sleep,
)
@@ -70,7 +70,7 @@ def main(
# Record audio chunks
for j in range(audio_chunks_number):
busy_wait(audio_chunks_duration)
precise_sleep(audio_chunks_duration)
for microphone_key, microphone in microphones.items():
audio_chunk = microphone.read()
+2 -2
View File
@@ -28,7 +28,7 @@ from lerobot.microphones.utils import (
make_microphones_from_configs,
)
from lerobot.utils.robot_utils import (
busy_wait,
precise_sleep,
)
@@ -59,7 +59,7 @@ def main(
)
# Record audio chunks
busy_wait(10.0)
precise_sleep(10.0)
for sensor_key, sensor in sensors.items():
data_chunk = sensor.read()