Skip to content

Commit

Permalink
fix #15804
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <[email protected]>
  • Loading branch information
m-kro committed Nov 28, 2024
1 parent 83d012d commit 3937085
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/countEdgeUsage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

# @file countEdgeUsage.py
# @author Jakob Erdmann
# @author Mirko Barthauer
# @date 2015-08-05

from __future__ import print_function
Expand Down Expand Up @@ -253,6 +254,10 @@ def parseTimed(outf, options):
# parse the elements
for routefile in options.routefiles:
for elem in parse(routefile, options.elements2):
if elem.hasAttribute("fromJunction"):
print("Warning: Cannot handle fromJunction/toJunction attributes in file '%s', thus skipping the %s element." % (routefile, elem.name),
file=sys.stderr)
continue
depart = elem.depart if elem.depart is not None else elem.begin
if depart != "triggered":
depart = parseTime(depart)
Expand Down

0 comments on commit 3937085

Please sign in to comment.