From c07ab7e1fa37c296d1dadaf50895fca6e3c1913b Mon Sep 17 00:00:00 2001 From: Pepijn Date: Tue, 30 Dec 2025 11:14:21 +0100 Subject: [PATCH] policy path can be none --- examples/rac/rac_data_collection_openarms.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/rac/rac_data_collection_openarms.py b/examples/rac/rac_data_collection_openarms.py index aa915130d..eac3b31dc 100644 --- a/examples/rac/rac_data_collection_openarms.py +++ b/examples/rac/rac_data_collection_openarms.py @@ -109,8 +109,8 @@ class RaCDatasetConfig: class RaCConfig: robot: RobotConfig dataset: RaCDatasetConfig - policy: PreTrainedConfig teleop: TeleoperatorConfig + policy: PreTrainedConfig | None = None display_data: bool = True play_sounds: bool = True resume: bool = False @@ -121,9 +121,11 @@ class RaCConfig: cli_overrides = parser.get_cli_overrides("policy") self.policy = PreTrainedConfig.from_pretrained(policy_path, cli_overrides=cli_overrides) self.policy.pretrained_path = policy_path + if self.policy is None: + raise ValueError("policy.path is required") @classmethod - def __get_path_fields__(cls) -> list[str]: + def __get_path_fields__(cls) -> list[str]: return ["policy"]