Skip to content

Commit 07ef3cb

Browse files
committed
taxi simulator using coroutines
1 parent 0327697 commit 07ef3cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

control/simulation/taxi_sim.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def run(self, end_time): # <1>
9191
except StopIteration:
9292
del self.actors[current_event.actor_id] # <12>
9393
else:
94-
self.events.put(next_event) # <14>
95-
else: # <15>
94+
self.events.put(next_event) # <13>
95+
else: # <14>
9696
msg = '*** end of simulation time: {} events pending ***'
9797
print(msg.format(self.events.qsize()))
9898
# END TAXI_SIMULATOR

0 commit comments

Comments
 (0)