DLR-TS / tsc

coupling TAPAS and SUMO
Eclipse Public License 2.0
10 stars 3 forks source link

install_scenario_templates.py error when directory scenario_templates is already created #24

Closed ArmelliniMG closed 2 years ago

ArmelliniMG commented 3 years ago

If the directory with the scenarios was already created, the script cannot copy the file in the folder if it already exists. (see line 166 in the script)

Here the error on windows: FileExistsError: [WinError 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: '\tsc\scenario_templates\berlin_net\tmp_output\1_net.net.xml.gz' -> '\tsc\scenario_templates\berlin_net\net.net.xml.gz'

If the files cannot be updated, this may lead to errors in the simulation. For example, if the new berlin network cannot be generated due to an error in netconvert, the script will take the oldest files and the user may not notice this, as the netconvert messages are very large.

behrisch commented 3 years ago

works on linux, but not on windows

behrisch commented 3 years ago

we should redirect netconvert outputs to the log as well (and suppress them on the terminal), to make the warnings about existing directories more prominent