From 4e5ac6f1a1cfa2dacb111619f4c4b1f4d1d8c080 Mon Sep 17 00:00:00 2001 From: MLErik <baerenjesus@gmail.com> Date: Tue, 29 Oct 2019 19:58:09 -0400 Subject: [PATCH] Adresses issue #263 Updated example --- flatland/envs/rail_env.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flatland/envs/rail_env.py b/flatland/envs/rail_env.py index 64eb3ab9..2dcf4daf 100644 --- a/flatland/envs/rail_env.py +++ b/flatland/envs/rail_env.py @@ -368,6 +368,7 @@ class RailEnv(Environment): # See if agents are already broken self._malfunction(self.mean_malfunction_rate) + for i_agent, agent in enumerate(self.agents): initial_malfunction = self._agent_malfunction(i_agent) -- GitLab