Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] routeSampler.py --optimize-input error

Thank you for your response.

I tried it and it gives me the following message. Could you help me with it?

Traceback (most recent call last):
  File "routeSampler.py", line 647, in <module>
    main(get_options())
  File "routeSampler.py", line 399, in main
    routes = Routes(options.routeFiles)
  File "routeSampler.py", line 362, in __init__
    self.all += [tuple(r.edges.split()) for r in sumolib.xml.parse(routefile, 'route')]
  File "routeSampler.py", line 362, in <listcomp>
    self.all += [tuple(r.edges.split()) for r in sumolib.xml.parse(routefile, 'route')]
  File "C:\Program Files (x86)\Eclipse\Sumo\tools\sumolib\xml.py", line 245, in parse
    for _, parsenode in ET.iterparse(_open(xmlfile, None)):
  File "C:\Users\Fay\AppData\Local\Programs\Python\Python38-32\lib\xml\etree\ElementTree.py", line 1227, in iterator
    yield from pullparser.read_events()
  File "C:\Users\Fay\AppData\Local\Programs\Python\Python38-32\lib\xml\etree\ElementTree.py", line 1302, in read_events
    raise event
  File "C:\Users\Fay\AppData\Local\Programs\Python\Python38-32\lib\xml\etree\ElementTree.py", line 1274, in feed
    self._parser.feed(data)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 164, column 809

Thank you.
Fay

Απαλλαγμένο από ιούς. www.avast.com

Στις Πέμ, 11 Ιουν 2020 στις 5:51 μ.μ., ο/η Jakob Erdmann <namdre.sumo@xxxxxxxxx> έγραψε:
That option takes no arguments it just toggles whether sampling prior to optimization should be done.
You can call it like this:  --optimize-input --optimize 5

Am Do., 11. Juni 2020 um 16:08 Uhr schrieb Fay Kostopoulou <faykost@xxxxxxxxx>:
Dear all,

I am trying to optimize the output of routeSampler, using the attribute --optimize-input, but it gives me the message below. I am running 
C:\Program Files (x86)\Eclipse\Sumo\tools>python routeSampler.py -r Test_calibration_warm.rou.xml -t turn-count-data_warm.xml -o Calibration_warm.rou.xml --optimize-input "0" . 
Could you help me with it?

usage: routeSampler.py [-h] [-c FILE] [-C FILE] [--save-template FILE] [-r ROUTEFILES] [-t TURNFILES] [-d EDGEDATAFILES] [-O ODFILES] [--edgedata-attribute EDGEDATAATTR] [--turn-attribute TURNATTR]
                       [--turn-max-gap TURNMAXGAP] [-o OUT] [--prefix PREFIX] [-a VEHATTRS] [-s SEED] [--mismatch-output MISMATCHOUT] [--optimize OPTIMIZE] [--optimize-input] [--geh-ok GEHOK] [-f WRITEFLOWS]
                       [-I] [-u WRITEROUTEDIST] [-b BEGIN] [-e END] [-i INTERVAL] [-v] [-V]
routeSampler.py: error: unrecognized arguments: 0

Thank you for your time.
Fay

Απαλλαγμένο από ιούς. www.avast.com
_______________________________________________
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

Back to the top