sumo icon indicating copy to clipboard operation
sumo copied to clipboard

Flowrouter doesn’t work

Open Mtbttt opened this issue 3 years ago • 5 comments

Hello, I want to use the flowrouter to estimate the flow on roads in which detector data is not available. I have created a very simple network but the flowrouter doesn’t work. Here is a sample of what happens when I run the code. AAE30D06-1B0C-44F6-BA88-AE4D44DCC20C

Mtbttt avatar Aug 02 '22 20:08 Mtbttt

Do you want to share your example?

m-kro avatar Aug 04 '22 07:08 m-kro

Hello, yes this is the example I used. python Sumo\tools/detector/flowrouter.py -n C:\Users\MAHGAM\Desktop\MAHGAM_TEST\MAHGAM_TEST.net.xml -d C:\Users\MAHGAM\Desktop\MAHGAM_TEST\detector_TEST.xml -f C:\Users\MAHGAM\Desktop\MAHGAM_TEST\flow_TEST.csv -o C:\Users\MAHGAM\Desktop\MAHGAM_TEST\routes.rou.xml -v --debug --revalidate-detectors

On Thu, Aug 4, 2022 at 12:02 PM Mirko Barthauer @.***> wrote:

Do you want to share your example?

— Reply to this email directly, view it on GitHub https://github.com/eclipse/sumo/issues/11275#issuecomment-1204876838, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2LAPQ2GDGSETMEKEDXRELLVXNWZHANCNFSM55MN7P4Q . You are receiving this because you authored the thread.Message ID: @.***>

Mtbttt avatar Aug 06 '22 09:08 Mtbttt

yes sure this is the example

python Sumo\tools/detector/flowrouter.py -n C:\Users\MAHGAM\Desktop\MAHGAM_TEST\MAHGAM_TEST.net.xml -d C:\Users\MAHGAM\Desktop\MAHGAM_TEST\detector_TEST.xml -f C:\Users\MAHGAM\Desktop\MAHGAM_TEST\flow_TEST.csv -o C:\Users\MAHGAM\Desktop\MAHGAM_TEST\routes_text.rou.xml -v --debug --revalidate-detectors

flow_TEST.csv

image

image image

routes_text.txt

I used the route files that I had created while utilizing sumo random trips. (routes.rou.alt.xml) I have also utilized trips.trips.xml file and routes.rou.xml file that have been created with sumo random trips.

Mtbttt avatar Aug 06 '22 10:08 Mtbttt

There is no need to put screenshots of text files. Just attach the files directly - the net is still missing.

m-kro avatar Aug 08 '22 06:08 m-kro

detector.txt flow_TEST.csv mahgam_net.txt routes_text.txt hello, I just attached all files as text thank you

Mtbttt avatar Aug 08 '22 14:08 Mtbttt

Sorry for the delay. I had a closer look and could identify two causes:

  • there seems to be some special character in the first line of flow_TEST.csv, so that the detector column is not found
  • use the option -e <FILE> to write the resulting flows to an output file

m-kro avatar Aug 15 '22 12:08 m-kro