Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] turnFile2EdgeRelations.py

Thank for reporting this problem. The invalid end tag has been fixed and comments are now preserved (if using python 3.8 or higher).

Am Fr., 30. Sept. 2022 um 22:34 Uhr schrieb Albert Jeans <ajeans2@xxxxxxxxx>:
I returned to using SUMO after a break of a couple of  years and learned that the format for turn definitions for JTRROUTER had changed from "fromEdge" and "toEdge" to "edgeRelation ... from ... to". I used the Python script turnFile2EdgeRelations.py to convert an existing turn definition file into the new format, but it resulted in an error because the outfile file started with the tag "<data ...> but ended with the tag "</edgeRelations>". I changed the Python script to write the tag "</data>" at the end and this seemed to fix the problem. Is this correct?

It would have been nice if the Python script could have left comment lines in the turn definitions file unchanged in the edgeRelations file instead of ignoring them. RIght now, I'm converting the old turn definitions file each time I want to run JTRROUTER so that I can keep using the old format.

Albert Jeans
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top