Skip to content

Commit

Permalink
solving more corner cases in template generation refs #16085
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Jan 24, 2025
1 parent bc5df8f commit d70e39b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tools/assign/duaIterate_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def parse_args():
help="output prefix for plotting with gnuplot")
parser.add_argument("-l", "--label-size", default=40, dest="label_size", type=int,
help="limit length of the plot label to this size")
parser.add_argument("--limit", type=int, default=uMax,
parser.add_argument("--limit", type=int,
help="only parse the first INT number of iterations")
parser.add_argument("--teleports", category="output", default="teleplot",
help="output prefix for plotting teleport-prone edges")
Expand All @@ -57,6 +57,9 @@ def parse_args():
parser.add_argument("dualog", category="output", nargs=1, type=parser.file, help="file path to dua log file")
options = parser.parse_args()
options.dualog = options.dualog[0]

if options.limit is None:
options.limit = uMax
return options


Expand Down
2 changes: 1 addition & 1 deletion tools/sumolib/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def write_config_to_file(self, out, namespace, print_template):
v = a.default
# help
if a.help is not None:
help = ' help="%s"' % a.help
help = ' help="%s"' % xmlescape(a.help)

# note: missing time, filename, list of vehicles, edges and lanes
# category
Expand Down

0 comments on commit d70e39b

Please sign in to comment.