def make_routes(self, scenario, initial_config, cfg_params):
type_params = scenario.type_params
type_list = scenario.type_params.keys()
num_cars = scenario.num_vehicles
if type_list is not None:
routes = makexml("routes", "http://sumo.dlr.de/xsd/routes_file.xsd")
for tp in type_list:
After Change
def make_routes(self, scenario, initial_config, cfg_params):
type_params = scenario.type_params
type_list = [tup[0] for tup in type_params]
num_cars = scenario.num_vehicles
if type_list is not None:
routes = makexml("routes", "http://sumo.dlr.de/xsd/routes_file.xsd")
for i, tp in enumerate(type_list):