Skip to content

Commit

Permalink
bugg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amacrutherford committed Jul 24, 2024
1 parent 020bb28 commit 3650fdc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jaxmarl/wrappers/baselines.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ def step(
action: Union[int, float],
reset_state: Optional[LogEnvState] = None,
) -> Tuple[chex.Array, LogEnvState, float, bool, dict]:
if reset_state is not None:
reset_state = reset_state.env_state
obs, env_state, reward, done, info = self._env.step(
key, state.env_state, action, reset_state.env_state
key, state.env_state, action, reset_state
)
ep_done = done["__all__"]
new_episode_return = state.episode_returns + self._batchify_floats(reward)
Expand Down

0 comments on commit 3650fdc

Please sign in to comment.