sumo
sumo copied to clipboard
The "Save SUMOConfig" option doesn't include the network file
@angelobanse it works for me when I load a network via command line and also when I open a network from the menu.
Can you give detailed steps for reproducing?
I was trying to save/create a config file - and not opening an existing one. Loading an existing config file works as expected.
My workflow:
- Creating a network
- Using demand mode to define trips
- Saving the network file
- Saving the demand file
- Attempting to generate a SUMO Config file using File>SUMOConfig>Save SUMOConfig As...
The saved SUMO Config file not only does not contain the network file, but uses route-files instead of value as a key:
<configuration>
<net-file value=""/>
<route-files route-files="foobar.rou.xml"/>
</configuration>
Furthermore this configuration does not use the "section style" so it won't validate against the schema
though the config files are never validated except in our schemacheck tests, right?
right, the SUMO apps do not do this but it helps people who have XML editors with schema support to avoid typos.
It still uses route-files instead of value here and has no sections or a schema. Can't we use the standard config writer?
If we can manage to create a new OptionsCont without clobbering our current Singleton instance, then yes. Though frankly, I like the didactic value of exhibiting a clean sumocfg without the sections (which are overkill when you only have 4 options).
understood. I am also not sure whether it is worth the effort.