Skip to content

Commit

Permalink
Merge pull request #16042 from schwepmo/netdiff-store-shapes-as-addit…
Browse files Browse the repository at this point in the history
…ionals

fix(netdiff): Properly store generated shapes as additional files
  • Loading branch information
namdre authored Jan 17, 2025
2 parents 009667c + c6dd866 commit 3da54ae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/netedit/tools/GNENetDiffTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ GNENetDiffTool::postProcessing() {
}
// load shapes
if (myPythonToolsOptions.getBool("load-shapes-modified")) {
loadShapes(myPythonToolsOptions.getString("outprefix") + ".changed.shape.xml");
loadShapes(myPythonToolsOptions.getString("outprefix") + ".changed.shape.add.xml");
}
if (myPythonToolsOptions.getBool("load-shapes-added")) {
loadShapes(myPythonToolsOptions.getString("outprefix") + ".created.shape.xml");
loadShapes(myPythonToolsOptions.getString("outprefix") + ".created.shape.add.xml");
}
if (myPythonToolsOptions.getBool("load-shapes-deleted")) {
loadShapes(myPythonToolsOptions.getString("outprefix") + ".deleted.shape.xml");
loadShapes(myPythonToolsOptions.getString("outprefix") + ".deleted.shape.add.xml");
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions tests/tools/config.tools
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ diff_xml:diff.xml
created_sel:diff.created.sel.txt
deleted_sel:diff.deleted.sel.txt
changed_sel:diff.changed.sel.txt
created_shapes:diff.created.shape.xml
deleted_shapes:diff.deleted.shape.xml
changed_shapes:diff.changed.shape.xml
created_shapes:diff.created.shape.add.xml
deleted_shapes:diff.deleted.shape.add.xml
changed_shapes:diff.changed.shape.add.xml
omnet:omnet.xml
shawn:shawn.xml
dri:test.dri
Expand Down
6 changes: 3 additions & 3 deletions tools/net/netdiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,9 +675,9 @@ def main(options):
selectionOutputFiles.append(codecs.open(options.outprefix + '.deleted.sel.txt', 'w', 'utf-8'))
selectionOutputFiles.append(codecs.open(options.outprefix + '.changed.sel.txt', 'w', 'utf-8'))
if options.write_shapes:
shapeOutputFiles.append(codecs.open(options.outprefix + '.created.shape.xml', 'w', 'utf-8'))
shapeOutputFiles.append(codecs.open(options.outprefix + '.deleted.shape.xml', 'w', 'utf-8'))
shapeOutputFiles.append(codecs.open(options.outprefix + '.changed.shape.xml', 'w', 'utf-8'))
shapeOutputFiles.append(codecs.open(options.outprefix + '.created.shape.add.xml', 'w', 'utf-8'))
shapeOutputFiles.append(codecs.open(options.outprefix + '.deleted.shape.add.xml', 'w', 'utf-8'))
shapeOutputFiles.append(codecs.open(options.outprefix + '.changed.shape.add.xml', 'w', 'utf-8'))
for f in shapeOutputFiles:
sumolib.writeXMLHeader(f, "$Id$", "additional", options=options) # noqa

Expand Down

0 comments on commit 3da54ae

Please sign in to comment.