Skip to content

Commit 50f3ebc

Browse files
committed
rollout return immediately
1 parent f622378 commit 50f3ebc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

python/mujoco/rollout.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def rollout(
322322
rollout = Rollout(nthread=nthread)
323323

324324
try:
325-
ret = rollout.rollout(
325+
return rollout.rollout(
326326
model,
327327
data,
328328
initial_state,
@@ -338,9 +338,6 @@ def rollout(
338338
if not persistent_pool:
339339
rollout.close()
340340

341-
# return outputs
342-
return ret
343-
344341
def _check_must_be_numeric(**kwargs):
345342
for key, value in kwargs.items():
346343
if value is None:

0 commit comments

Comments
 (0)