Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to use xml2csv script

I was able to get the script to run and generate output, but I did have another question. However I will ask you on the other email thread that has the image of passenger counts you gave me.

 

Sent from Mail for Windows

 

From: Harald Schaefer
Sent: Saturday, October 9, 2021 3:47 PM
To:
sumo-user@xxxxxxxxxxx
Subject: Re: [sumo-user] How to use xml2csv script

 

The absolute path contains blanks, so you have to enclose it in quotation marks (")

Am 09.10.21 um 19:50 schrieb vincentobiako:

I am putting in the absolute path into my command line but it keeps throwing an error as seen below. I added the xml file to directory seen in the image where the xml2csv.py is located and I still keep getting error. I am not sure what I am doing wrong in the command line.

 

 

Sent from Mail for Windows

 

From: Harald Schaefer
Sent: Saturday, September 25, 2021 2:04 AM
To: sumo-user@xxxxxxxxxxx
Subject: Re: [sumo-user] How to use xml2csv script

 

Hi Ifezue,

you have to enter on the command line only one line

  python <path-to-python-script> <arguments for script>

the documentation assumes you are in SUMO_HOME, I would recommend for windows a absolute path to the script

 python %SUMO_HOME%\tools\xml\xml2csv.py <your xml-file>

This works in other working directories

Under Linux you can add $SUMO_HOME/tools/xml to your PATH variable.

Greetings Harald

@DLR please update the documentation

Am 24.09.21 um 20:38 schrieb vincentobiako:

Hello everyone

 

I am a novice to SUMO and I was reading the documentation to convert xml to csv formatting https://sumo.dlr.de/docs/Tools/Xml.html. I was wondering how do you use the python commands in the SUMO documentation? That is, what command line do I put in the python command and how do I put it into the command line? I am a little confused by the documentation.

 

Thank you in advance

Ifezue

 

Sent from Mail for Windows

 

 

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

 



_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

 

Attachment: 2CB6CD96F41641409E5E53D976FB9016.png
Description: PNG image

Attachment: DB1CA2E7066048FB8B5BB0D4C7B02852.png
Description: PNG image


Back to the top