flow icon indicating copy to clipboard operation
flow copied to clipboard

Flow fails to read rou.xml file that represents Flows

Open parthjaggi opened this issue 4 years ago • 0 comments

Bug Description

I have a file that is named flows.rou.xml. It contents look like:

<flows>
<interval begin="0" end="300" id="0">
    <flow id="N0" from="center1_SOUTH_ENTRANCE" to="center8_SOUTH_6"  number="48" departLane="free"/>
    ...
    ...

This file represents Repeated vehicles (Flows), as represented on https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#repeated_vehicles_flows. It was expected that Flow would be able to read this file, as it reads the rou.xml files that are of the form <routes> and <vehicle>. But it does not.

Going through the code in flow/networks/base.py, I could not find any way to read this file. The flow-project can read <routes> type of .rou.xml file but may be not this one. Am I correct in this assumption?

Bug Reproduce

File in which the bug occurred: flow/networks/base.py

Versions

  • OS: Ubuntu 16.04
  • Flow version: 0.5.0.dev
  • Flow commit number: 80f3c47f55ce167dcf27164783234894d43ddda0

parthjaggi avatar Mar 18 '20 14:03 parthjaggi