utdf2gmns.func_lib.update_sumo_signal_from_utdf

utdf2gmns.func_lib.update_sumo_signal_from_utdf(sumo_net_xml: str, utdf_dict_or_fname: dict | str, verbose: bool = False) bool[source]

update sumo signal (.net.xml) from UTDF signal information

Parameters:
  • sumo_net_xml (str) – the path of sumo network xml file

  • utdf_dict_or_fname (dict | str) – the UTDF dictionary or the path of UTDF csv file

  • verbose (bool) – whether to print the process. Defaults to False.

Example

>>> import utdf2gmns as ug
>>> sumo_net_xml = "your sumo network xml file"
>>> utdf_dict_or_fname = "your utdf file, in csv format"
>>> ug.update_sumo_signal_from_utdf(sumo_net_xml, utdf_dict_or_fname, verbose=True)
Returns:

whether the generation is successful

Return type:

bool