Skip to content

Commit

Permalink
runs formatter over the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayankm96 committed Apr 27, 2023
1 parent 425dcc1 commit 166f83f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/extensions/omni.isaac.orbit/test/test_dict_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_print_dict(self):
"b": 2,
"c": {"d": 3, "e": 4, "f": {"g": 5, "h": 6}},
"i": 7,
"j": lambda x: x ** 2,
"j": lambda x: x**2,
"k": dict_utils.class_to_dict,
}
# print the dictionary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ def load_default_env_cfg(task_name: str) -> Union[dict, Any]:
Returns:
Union[dict, Any]: The parsed configuration object.
Raises:
ValueError: If the task name is not provided, i.e. None.
"""
# check if a task name is provided
if task_name is None:
raise ValueError("Please provide a valid task name. Hint: Use --task <task_name>.")
# retrieve the configuration file to load
cfg_entry_point: str = gym.spec(task_name)._kwargs.pop("cfg_entry_point")

Expand Down Expand Up @@ -74,7 +80,13 @@ def parse_env_cfg(task_name: str, use_gpu: bool = True, num_envs: int = None, **
Returns:
Union[dict, Any]: The parsed configuration object.
Raises:
ValueError: If the task name is not provided, i.e. None.
"""
# check if a task name is provided
if task_name is None:
raise ValueError("Please provide a valid task name. Hint: Use --task <task_name>.")
# create a dictionary to update from
args_cfg = {"sim": {"physx": dict()}, "env": dict()}
# resolve pipeline to use (based on input)
Expand Down

0 comments on commit 166f83f

Please sign in to comment.