Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor docstring and lint fix #53

Merged
merged 2 commits into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/seals/diagnostics/parabola.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def initial_state(self) -> np.ndarray:
def reward(self, state: np.ndarray, action: int, new_state: np.ndarray) -> float:
"""Negative squared vertical distance from parabola."""
x, y, a, b, c = state
target_y = a * x ** 2 + b * x + c
target_y = a * x**2 + b * x + c
return (-1) * (y - target_y) ** 2

def transition(self, state: np.ndarray, action: int) -> np.ndarray:
Expand Down
2 changes: 1 addition & 1 deletion src/seals/mujoco.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AntEnv(ant_v3.AntEnv):

@_include_position_in_observation
class HalfCheetahEnv(half_cheetah_v3.HalfCheetahEnv):
"""HalfCheetah with position observation and no early termination."""
"""HalfCheetah with position observation. Naturally does not terminate early."""


@_include_position_in_observation
Expand Down