Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix observed_rl_ids bug in i210_dev #1003

Open
wants to merge 1 commit into
base: i210_dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flow/envs/multiagent/i210.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down