You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# test on different driver number
driver_coefficients = [0.1, 0.25, 0.5]
for d in driver_coefficients:
city = City(g_line, call_generator, driver_initializer, total_driver_number_per_time=total_driver_number_per_time,
speed_info = speed_info, name='real_city_with_speed', driver_coefficient=d, consider_speed = True)
test_all_for_city(city, "real_city_with_driver_%.2f" % d)
When I run the last part of the code, I get an error. I don't know if it's a code problem or a data problem. This question has been bothering me for a long time. I am looking forward to your answer. Thank you very much. The error message is as follows:
E:\try-delete\TaxiSimulatorOnGraph-master -aa\TaxiSimulatorOnGraph-master\call_generator.py in generate_call(self, city, is_initialize, seed)
72
73 def generate_call(self, city: City, is_initialize=False, seed=None):
---> 74 call_at_t = self.day_orders[city.city_time]
75 # generate call objects to each road of the city.
76 for call in call_at_t:
IndexError: list index out of range
The text was updated successfully, but these errors were encountered:
When I run the last part of the code, I get an error. I don't know if it's a code problem or a data problem. This question has been bothering me for a long time. I am looking forward to your answer. Thank you very much. The error message is as follows:
E:\try-delete\TaxiSimulatorOnGraph-master -aa\TaxiSimulatorOnGraph-master\call_generator.py in generate_call(self, city, is_initialize, seed)
72
73 def generate_call(self, city: City, is_initialize=False, seed=None):
---> 74 call_at_t = self.day_orders[city.city_time]
75 # generate call objects to each road of the city.
76 for call in call_at_t:
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: