Skip to main content

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

There must be a misunderstanding somewhere: The tool turnFile2EdgeRelations.py converts the (obsolete) format

<turns xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/turns_file.xsd">
    <interval begin="0.0" end="99.0">
        <fromEdge id="-58.121.42">
            <toEdge id="64" probability="1"/>
            <toEdge id="-31" probability="3"/>
        </fromEdge>
...


Into the new edgeRelation format:
<edgeRelations>
   <interval begin="0" end="3600">
      <edgeRelation from="myEdge0" to="myEdge1" probability="0.2"/>
      <edgeRelation from="myEdge0" to="myEdge1" probability="0.7"/>
      <edgeRelation from="myEdge0" to="myEdge1" probability="0.1"/>
...

What you sent me where both edgeRelation files that cannot be used as input for turnFile2EdgeRelations.py. Also the files are missing the top <edgeRelations> element.

Am Fr., 29. Mai 2020 um 14:52 Uhr schrieb Fay Kostopoulou <faykost@xxxxxxxxx>:
Ηello again,

I am sending you my two turn count data input files.

Thank you.
Fay

Στις Παρ, 29 Μαΐ 2020 στις 3:33 μ.μ., ο/η Fay Kostopoulou <faykost@xxxxxxxxx> έγραψε:
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
_______________________________________________
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