Skip to main content

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

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

Back to the top