From 7d7a716f5daaea6e2748e26aa6d4809711acfc51 Mon Sep 17 00:00:00 2001 From: Luciano Ramalho Date: Wed, 11 Feb 2015 01:16:32 -0200 Subject: [PATCH] minor edit to taxi_sim.py --- control/simulation/taxi_sim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/simulation/taxi_sim.py b/control/simulation/taxi_sim.py index 9b06a16..dd20ad7 100644 --- a/control/simulation/taxi_sim.py +++ b/control/simulation/taxi_sim.py @@ -32,7 +32,7 @@ class Simulator: self.actors = list(actors) self.time = 0 - def schedule_events(self, end_time): + def schedule_events(self): for actor in list(self.actors): try: future_event = next(actor) @@ -43,7 +43,7 @@ class Simulator: def run(self, end_time): while self.time < end_time: - self.schedule_events(end_time) + self.schedule_events() if self.events.empty(): print('*** end of events ***') break