From 446d58b8fe4562651cb203fea1943a903259aa58 Mon Sep 17 00:00:00 2001 From: Akash Velu <31679538+akashvelu@users.noreply.github.com> Date: Thu, 16 Jul 2020 11:10:54 -0700 Subject: [PATCH] Fix observed_rl_ids bug in i210_dev --- flow/envs/multiagent/i210.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/envs/multiagent/i210.py b/flow/envs/multiagent/i210.py index 004208cb4..65bad3e37 100644 --- a/flow/envs/multiagent/i210.py +++ b/flow/envs/multiagent/i210.py @@ -380,7 +380,7 @@ def step(self, rl_actions): state, reward, done, info = super().step(rl_actions) # handle the edge case where a vehicle hasn't been put back when the rollout terminates if self.reroute_on_exit and done['__all__']: - for rl_id in self.observed_rl_ids: + for rl_id in self._observed_rl_ids: if rl_id not in state.keys(): done[rl_id] = True reward[rl_id] = 0