rollout fix cosmetics

This commit is contained in:
Levi Burner
2025-02-21 08:44:17 -05:00
parent aca4e5d6ae
commit a0971ef749
2 changed files with 9 additions and 5 deletions
+7 -3
View File
@@ -26,7 +26,6 @@ import numpy as np
import mujoco import mujoco
from mujoco import rollout from mujoco import rollout
# -------------------------- models used for testing --------------------------- # -------------------------- models used for testing ---------------------------
TEST_XML = r""" TEST_XML = r"""
@@ -889,8 +888,13 @@ class MuJoCoRolloutTest(parameterized.TestCase):
assert nstep * nstate * nbatch > 2**31 assert nstep * nstate * nbatch > 2**31
initial_state = np.random.randn(nbatch, nstate) initial_state = np.random.randn(nbatch, nstate)
rollout.rollout(model, [copy.copy(data) for _ in range(nthread)], rollout.rollout(
initial_state, nstep=nstep) model,
[copy.copy(data) for _ in range(nthread)],
initial_state,
nstep=nstep,
)
# -------------- Python implementation of rollout functionality ---------------- # -------------- Python implementation of rollout functionality ----------------