From 9464e58c675b0ea1fa4993d567345c1327ac5871 Mon Sep 17 00:00:00 2001
From: MLErik <baerenjesus@gmail.com>
Date: Fri, 7 Jun 2019 15:44:11 +0200
Subject: [PATCH] removed all action_dict changes to avoid confusion while
 training

---
 flatland/envs/rail_env.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/flatland/envs/rail_env.py b/flatland/envs/rail_env.py
index 1b57ce59..8a2bcf49 100644
--- a/flatland/envs/rail_env.py
+++ b/flatland/envs/rail_env.py
@@ -199,7 +199,7 @@ class RailEnv(Environment):
             if iAgent not in action_dict:  # no action has been supplied for this agent
                 if agent.moving:
                     # Keep moving
-                    # CHange MOVE_FORWARD to DO_NOTHING
+                    # Change MOVE_FORWARD to DO_NOTHING
                     action_dict[iAgent] = RailEnvActions.DO_NOTHING
                 else:
                     action_dict[iAgent] = RailEnvActions.DO_NOTHING
@@ -216,13 +216,13 @@ class RailEnv(Environment):
             if action == RailEnvActions.DO_NOTHING and agent.moving:
                 # Keep moving
                 # Changed MOVE_FORWARD to DO_NOTHING
-                action_dict[iAgent] = RailEnvActions.DO_NOTHING
+                #action_dict[iAgent] = RailEnvActions.DO_NOTHING
                 action = RailEnvActions.MOVE_FORWARD
 
             if action == RailEnvActions.STOP_MOVING and agent.moving:
                 #action_dict[iAgent] = RailEnvActions.DO_NOTHING
                 # CHanged DO_NOTHING to STOP_MOVING
-                action = RailEnvActions.STOP_MOVING
+                # action = RailEnvActions.STOP_MOVING
                 agent.moving = False
                 self.rewards_dict[iAgent] += stop_penalty
 
-- 
GitLab