Skip to content

Commit

Permalink
Fix formatting issues in walker.py and domain_randomization.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AdilZouitine committed Apr 24, 2024
1 parent b1ae360 commit e875c0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion rrls/envs/walker.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def set_params(
else getattr(self, "thighmass", DEFAULT_PARAMS["thighmass"])
)
self.legmass = (
legmass if legmass is not None else getattr(self, "legmass", DEFAULT_PARAMS["legmass"])
legmass
if legmass is not None
else getattr(self, "legmass", DEFAULT_PARAMS["legmass"])
)
self.footmass = (
footmass
Expand Down
7 changes: 3 additions & 4 deletions rrls/wrappers/domain_randomization.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ def __init__(
self,
env: ModifiedParamsEnv,
params_bound: dict[str, Annotated[tuple[float], 2]],
randomize_fn: Callable[
[dict[str, Annotated[tuple[float], 2]]], dict[str, float]
]
| None = None,
randomize_fn: (
Callable[[dict[str, Annotated[tuple[float], 2]]], dict[str, float]] | None
) = None,
):
super().__init__(env)
self.env = env
Expand Down

0 comments on commit e875c0d

Please sign in to comment.