Skip to content
Snippets Groups Projects
Commit 71a41765 authored by spmohanty's avatar spmohanty
Browse files

Regenerate the schedule when regenerating rails too

parent 6581b9ae
No related branches found
No related tags found
No related merge requests found
......@@ -321,7 +321,7 @@ class RailEnv(Environment):
# todo change self.agents_static[0] with the refactoring for agents_static -> issue nr. 185
# https://gitlab.aicrowd.com/flatland/flatland/issues/185
if regenerate_schedule or self.agents_static[0] is None:
if regenerate_schedule or regenerate_rail or self.agents_static[0] is None:
agents_hints = None
if optionals and 'agents_hints' in optionals:
agents_hints = optionals['agents_hints']
......
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