Skip to content

Commit

Permalink
Merge 9642855 into 7d632c7
Browse files Browse the repository at this point in the history
  • Loading branch information
kanaadp committed Mar 9, 2020
2 parents 7d632c7 + 9642855 commit b3047d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flow/envs/multiagent/base.py
Expand Up @@ -148,6 +148,13 @@ def reset(self, new_inflow_rate=None):
# reset the time counter
self.time_counter = 0

# Now that we've passed the possibly fake init steps some rl libraries
# do, we can feel free to actually render things
if self.should_render:
self.sim_params.render = True
# got to restart the simulation to make it actually display anything
self.restart_simulation(self.sim_params)

# warn about not using restart_instance when using inflows
if len(self.net_params.inflows.get()) > 0 and \
not self.sim_params.restart_instance:
Expand Down

0 comments on commit b3047d9

Please sign in to comment.