Skip to content

Commit

Permalink
format and add str check
Browse files Browse the repository at this point in the history
  • Loading branch information
raghavauppuluri13 authored and vikashplus committed Dec 20, 2023
1 parent 81e90cb commit 94fe08e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions robohive/physics/mj_sim_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def _load_simulation(self, model_handle: Any) -> Any:
if isinstance(model_handle, str):
if model_handle.endswith('.xml'):
sim = dm_mujoco.Physics.from_xml_path(model_handle)
elif "<mujoco" in model_handle:
sim = dm_mujoco.Physics.from_xml_string(model_handle)
elif isinstance(model_handle, str) and "<mujoco" in model_handle:
sim = dm_mujoco.Physics.from_xml_string(model_handle)
else:
sim = dm_mujoco.Physics.from_binary_path(model_handle)
else:
Expand Down

0 comments on commit 94fe08e

Please sign in to comment.