Skip to main content

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

Hello,

My turn-count-data input file has the following syntax.

"<interval id="warm" begin="0.00" end="900.0">
<edgeRelation from="249466774.767" to="249466774.961" count="1218"/>
<edgeRelation from="658270072" to="658270072.54" count="1012"/>
                                                   .
                                                   .
                                                   .
<edgeRelation from="421954017.89" to="664259646" count="130"/>                                                   .
<edgeRelation from="422678009#0" to="422678009#1" count="206"/>
</interval>"

Thank you for your time.
Fay

Στις Παρ, 29 Μαΐ 2020 στις 9:04 π.μ., ο/η Jakob Erdmann <namdre.sumo@xxxxxxxxx> έγραψε:
I can help, If you provide your input file or at least a part thereof that allows reproducing your issue.

Am Do., 28. Mai 2020 um 21:37 Uhr schrieb Fay Kostopoulou <faykost@xxxxxxxxx>:
Hello,

I tried again (with the new latest development version), now no error appears but the file has no edgeRelation counts, like below. Could you help me with it?

<?xml version="1.0" encoding="UTF-8"?>
<!-- generated on 2020-05-28 22:29:26.750269 by turnFile2EdgeRelations.py v1_6_0+0424-80098c3c20
  options: -t C:\Users\Fay\Desktop\DT\turn-count-data_warm.xml -o C:\Users\Fay\Desktop\DT\new_turncountdata-warm.xml
-->
<edgeRelations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/edgerelations_file.xsd">
    <interval begin="0.00" end="900.0">
    </interval>
</edgeRelations>  

Thank you.
Fay

Στις Τετ, 27 Μαΐ 2020 στις 4:43 μ.μ., ο/η Jakob Erdmann <namdre.sumo@xxxxxxxxx> έγραψε:
Thanks for reporting. Now fixed (https://github.com/eclipse/sumo/issues/7084).

Am Mi., 27. Mai 2020 um 15:35 Uhr schrieb Fay Kostopoulou <faykost@xxxxxxxxx>:
Hello,

I am using the tool turnFile2EdgeRelations.py to convert old files into the new format of version 1.6, running "C:\Program Files (x86)\Eclipse\Sumo\tools\turn-defs>python turnFile2EdgeRelations.py -t C:\Users\Fay\Desktop\DT\turn-count-data_warm.xml -o C:\Users\Fay\Desktop\DT\new_turncountdata-warm.xml'  but it gives me the following error. I have installed the latest development version.

Traceback (most recent call last):
  File "turnFile2EdgeRelations.py", line 64, in <module>
    main(get_options())
  File "turnFile2EdgeRelations.py", line 55, in main
    for fromEdge in interval.fromEdge:
TypeError: 'NoneType' object is not iterable

Could you help me with it?   

Thank you.
Fay
_______________________________________________
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
_______________________________________________
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