src/TrafficCoordinator.py
def update_lane_queues(self, lane_queues):
        """ Remove cars in self.lane_queues whose start time window already began. """
        for lane in lane_queues.keys():
            updated_lane_queue = []
            for (car, start_time) in lane_queues[lane]:
                if start_time >= car.time:
                    updated_lane_queue += [(car,start_time)] #Only keep cars that haven't entered intersection
            lane_queues[lane] = updated_lane_queue
        return lane_queues
 Remove cars in self.lane_queues whose start time window already began. 
Remove cars in self.lane_queues whose start time window already began.
Remove cars in self . lane_queues whose start time window already began .
def update_lane_queues(self, lane_queues):
        for lane in lane_queues.keys():
            updated_lane_queue = []
            for (car, start_time) in lane_queues[lane]:
                if start_time >= car.time:
                    updated_lane_queue += [(car,start_time)] 
            lane_queues[lane] = updated_lane_queue
        return lane_queues
def update_lane_queues ( self , lane_queues ) : for lane in lane_queues . keys ( ) : updated_lane_queue = [ ] for ( car , start_time ) in lane_queues [ lane ] : if start_time >= car . time : updated_lane_queue += [ ( car , start_time ) ] lane_queues [ lane ] = updated_lane_queue return lane_queues
Remove cars in self.lane_queues whose start time window already began.
Remove cars in self . lane_queues whose start time window already began .
""" Remove cars in self.lane_queues whose start time window already began. """ #Only keep cars that haven't entered intersection
self
lane_queues