Skip to content
Snippets Groups Projects
Commit 0c8e8312 authored by Erik Nygren's avatar Erik Nygren
Browse files

minor bugfixes, still looking for infinite loop

parent 576715cb
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,8 @@ for trials in range(1, n_trials + 1): ...@@ -54,7 +54,8 @@ for trials in range(1, n_trials + 1):
# Run episode # Run episode
for step in range(100): for step in range(100):
#env_renderer.renderEnv(show=True) if trials >= 114:
env_renderer.renderEnv(show=True)
# Action # Action
for a in range(env.number_of_agents): for a in range(env.number_of_agents):
......
...@@ -547,7 +547,7 @@ class RailEnv(Environment): ...@@ -547,7 +547,7 @@ class RailEnv(Environment):
global_reward = 1 * beta global_reward = 1 * beta
# Reset the step rewards # Reset the step rewards
self.rewards_dict = {} self.rewards_dict = dict()
for handle in self.agents_handles: for handle in self.agents_handles:
self.rewards_dict[handle] = 0 self.rewards_dict[handle] = 0
......
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