Skip to content

Commit

Permalink
Issue #134: Reset latest_step_duration
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark2000 committed May 9, 2024
1 parent f4ae2c1 commit d9398b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bsk_rl/envs/general_satellite_tasking/gym_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __init__(
self.failure_penalty = failure_penalty
self.time_limit = time_limit
self.terminate_on_time_limit = terminate_on_time_limit
self.latest_step_duration = 0
self.latest_step_duration = 0.0
self.render_mode = render_mode

def _minimum_env_model(self) -> type[EnvironmentModel]:
Expand Down Expand Up @@ -205,6 +205,8 @@ def reset(
np.random.seed(self.seed)
self._generate_env_args()

self.latest_step_duration = 0.0

self.env_features.reset()
self.data_manager.reset()

Expand Down

0 comments on commit d9398b8

Please sign in to comment.