Skip to content

Commit

Permalink
Remove get resource filename.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 588494184
Change-Id: Ied5b4d8ad6fe6b85da5d1f6116f080285b506997
  • Loading branch information
btaba authored and copybara-github committed Dec 6, 2023
1 parent 2603f04 commit 4ff0771
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,8 @@ class MjxModelsTest(parameterized.TestCase):

@parameterized.parameters(_MJX_MODEL_XMLS)
def test_compiles_and_steps(self, xml_path: pathlib.Path) -> None:
mj_model = mujoco.MjModel.from_xml_path(
resources.GetResourceFilename(xml_path)
)
model = mjx.device_put(mj_model)
model = mujoco.MjModel.from_xml_path(str(xml_path))
model = mjx.device_put(model)
data = mjx.make_data(model)
ctrlrange = jp.where(
model.actuator_ctrllimited[:, None],
Expand Down

0 comments on commit 4ff0771

Please sign in to comment.