Skip to content

Commit

Permalink
fix #14387
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 22, 2024
1 parent 7229457 commit 4d3a0a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 0 additions & 5 deletions tests/tools/output/edgeDataDiff/meandata.tools.out.xml

This file was deleted.

8 changes: 5 additions & 3 deletions tools/output/edgeDataDiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import math
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from sumolib.xml import parse # noqa
from sumolib.miscutils import Statistics, geh # noqa
from sumolib.miscutils import Statistics, geh, short_names # noqa
from sumolib.options import ArgumentParser # noqa


Expand Down Expand Up @@ -54,8 +54,10 @@ def write_diff(options):
for interval_old, interval_new in zip(
parse(options.orig, 'interval', heterogeneous=True),
parse(options.new, 'interval', heterogeneous=True)):
f.write(' <interval begin="%s" end="%s">\n' %
(interval_old.begin, interval_old.end))
f.write(' <interval begin="%s" end="%s" id="%s@%s - %s@%s">\n' %
(interval_old.begin, interval_old.end,
interval_new.id, options.new,
interval_old.id, options.orig))
interval_new_edges = dict([(e.id, e) for e in interval_new.edge])
for edge_old in interval_old.edge:
edge_new = interval_new_edges.get(edge_old.id, None)
Expand Down

0 comments on commit 4d3a0a0

Please sign in to comment.