Skip to content

Commit 15a5b70

Browse files
committed
fix: add future annotations to xml_utils and fix stale body_name key in tests
1 parent 5349e15 commit 15a5b70

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/unilab/utils/xml_utils.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import os
24
import tempfile
35
import xml.etree.ElementTree as ET

‎tests/base/test_sim_backend.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def test_get_sensor_data_b_shape(self, bkd, body_ids):
406406

407407
def test_base_body_pos_b_is_zero(self, bkd):
408408
"""Base body position relative to itself must be [0,0,0]."""
409-
pelvis_id = bkd.model.get_body_index(_G1["body_name"])
409+
pelvis_id = bkd.model.get_body_index(_G1["base_name"])
410410
pos_b = bkd.get_body_pos_b(np.array([pelvis_id]))
411411
np.testing.assert_allclose(pos_b, 0.0, atol=1e-4)
412412

0 commit comments

Comments
 (0)