mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-09-06 11:52:18 +00:00
redo black (#2272)
This commit is contained in:
@@ -75,9 +75,15 @@ def reset_mocap2body_xpos(sim):
|
||||
values as the bodies they're welded to.
|
||||
"""
|
||||
|
||||
if sim.model.eq_type is None or sim.model.eq_obj1id is None or sim.model.eq_obj2id is None:
|
||||
if (
|
||||
sim.model.eq_type is None
|
||||
or sim.model.eq_obj1id is None
|
||||
or sim.model.eq_obj2id is None
|
||||
):
|
||||
return
|
||||
for eq_type, obj1_id, obj2_id in zip(sim.model.eq_type, sim.model.eq_obj1id, sim.model.eq_obj2id):
|
||||
for eq_type, obj1_id, obj2_id in zip(
|
||||
sim.model.eq_type, sim.model.eq_obj1id, sim.model.eq_obj2id
|
||||
):
|
||||
if eq_type != mujoco_py.const.EQ_WELD:
|
||||
continue
|
||||
|
||||
|
Reference in New Issue
Block a user