File tree Expand file tree Collapse file tree
train_mimic/tasks/tracking/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -258,6 +258,9 @@ def test_make_g1_training_robot_cfg_uses_requested_xml() -> None:
258258
259259 assert isinstance (robot_cfg .spec_fn , partial )
260260 assert robot_cfg .spec_fn .args == (xml_path ,)
261+ spec = robot_cfg .spec_fn ()
262+ assert len (spec .actuators ) == 0
263+ assert len (spec .keys ) == 0
261264
262265
263266def test_validate_motion_file_accepts_shard_directories (tmp_path : Path ) -> None :
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ def _get_g1_training_spec(robot_xml: str | Path | None = None) -> mujoco.MjSpec:
6969 spec = mujoco .MjSpec .from_file (str (xml_path ))
7070 for actuator in list (spec .actuators ):
7171 spec .delete (actuator )
72+ for key in list (spec .keys ):
73+ spec .delete (key )
7274 return spec
7375
7476
You can’t perform that action at this time.
0 commit comments