Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] implausibleRoutes issue

By default flowrouter.py does not check for road permissions when creating routes which causes some invalid routes to be generated that duarouter (currently) cannot ignore.
Also, plausibleRoutes.py does not set any duarouter option that would handle broken routes (--repair) and thus crashes when duarouter fails.
A simple work-around is to call flowrouter.py with option --vclass passenger.

regards,
Jakob

Am Mo., 3. Nov. 2025 um 19:15 Uhr schrieb Gabriel García Casa <gabrielgarciacasa@xxxxxxxxx>:
Good afternoon,

I'm attaching everything. Please let me know if you need anything else.

flows_FR.add and rutas_FR.rou are the files obtained after running flowrouter as I indicated before

Best regards,

Gabriel

El lun, 3 nov 2025 a las 18:54, Jakob Erdmann (<namdre.sumo@xxxxxxxxx>) escribió:
Option --via-detectors should not be relevant here because it only affects the contexts of flows_FR.add.xml and not rutas_FR.rou.xml
Since I was unable to replicate the error, can you provide the input files you have passed to implausibleRoutes.py? (net and routes)

Am Mo., 3. Nov. 2025 um 17:45 Uhr schrieb Gabriel García Casa via sumo-user <sumo-user@xxxxxxxxxxx>:
Good afternoon guys,

I'm trying to run implausibleRoutes after running flowrouter but I get this error message:

Error: Route '!-142642234#1_23397588#1.count.0' (vehicle '-142642234#1_23397588#1.count.0') is not valid.
Quitting (on error).
Traceback (most recent call last):
  File "C:\Program Files (x86)\Eclipse\Sumo\\tools\route\implausibleRoutes.py", line 322, in <module>
    main()
    ~~~~^^
  File "C:\Program Files (x86)\Eclipse\Sumo\\tools\route\implausibleRoutes.py", line 265, in main
    options.detour_factor * ri.detour +
                            ^^^^^^^^^
AttributeError: 'RouteInfo' object has no attribute 'detour'

This is how I ran flowrouter and implausibleRoutes:

python "%SUMO_HOME%\tools\detector\flowrouter.py" -n osm.net.xml -d detectores_e1.add.xml -f espiras_counts.csv --flow-column count -i 60 --via-detectors -o rutas_FR.rou.xml -e flows_FR.add.xml -v

python "%SUMO_HOME%\tools\route\implausibleRoutes.py" osm.net.xml rutas_FR.rou.xml --standalone --threshold 2.5 --restriction-output restrict_FR.txt -v

I've already tried cleaning the routeIDs generated by flowrouter (removing characters like !, # and .count), and I also ran implausibleRoutes with --ignore-errors, but the same issue persists.

Is there any other way to run implausibleRoutes on routes generated by flowrouter with --via detectors?

Best regards,

Gabriel

 

_______________________________________________
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