Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
jet-sony committed Sep 4, 2024
1 parent d73a51f commit f487e4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PyFlyt/gym_envs/quadx_envs/quadx_ball_in_cup_env.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""QuadX Ball-in-Cup Environment."""

from __future__ import annotations

import os
Expand Down Expand Up @@ -255,7 +256,7 @@ def compute_state(self) -> None:
)

def compute_term_trunc_reward(self) -> None:
"""Computes the termination, trunction, and reward of the current timestep."""
"""Computes the termination, truncation, and reward of the current timestep."""
super().compute_base_term_trunc_reward()

# compute some parameters of the ball
Expand All @@ -264,7 +265,6 @@ def compute_term_trunc_reward(self) -> None:
ball_rel_height = ball_rel_lin_pos[2]
ball_rel_abs_dist = np.linalg.norm(ball_rel_lin_pos)


# bonus reward if we are not sparse
if not self.sparse_reward:
# reward for staying alive
Expand Down

0 comments on commit f487e4e

Please sign in to comment.