Skip to content

Commit

Permalink
Fixed bug in multiprocess environment
Browse files Browse the repository at this point in the history
- missing copy of internal state before returning the current state
- now vectorized pensulum works
  • Loading branch information
boris-il-forte committed Jan 18, 2024
1 parent 867fd3d commit b4a0a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mushroom_rl/core/multiprocess_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def step_all(self, env_mask, action):
else:
step_infos.append({})

return self._states, rewards, absorbings, step_infos
return self._states.copy(), rewards, absorbings, step_infos

def render_all(self, env_mask, record=False):
for i, remote in enumerate(self._remotes):
Expand Down

0 comments on commit b4a0a02

Please sign in to comment.