Skip to content
Snippets Groups Projects
Commit aeada434 authored by u214892's avatar u214892
Browse files

#62 increase coverage #83 cleanup

parent 001b58c7
No related branches found
No related tags found
No related merge requests found
...@@ -202,7 +202,7 @@ class RailEnv(Environment): ...@@ -202,7 +202,7 @@ class RailEnv(Environment):
self.rewards_dict = {i: r + global_reward for i, r in self.rewards_dict.items()} self.rewards_dict = {i: r + global_reward for i, r in self.rewards_dict.items()}
return self._get_observations(), self.rewards_dict, self.dones, {} return self._get_observations(), self.rewards_dict, self.dones, {}
for i_agent, agent in enumerate(self.get_num_agents()): for i_agent, agent in enumerate(self.agents):
agent.old_direction = agent.direction agent.old_direction = agent.direction
agent.old_position = agent.position agent.old_position = agent.position
if self.dones[i_agent]: # this agent has already completed... if self.dones[i_agent]: # this agent has already completed...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment