Skip to content
Snippets Groups Projects
Commit c12fa61b authored by Hans-Jörg's avatar Hans-Jörg
Browse files

Visualize: fix highlights

parent 093f21f1
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ def name_strategies(schedule, shorthands, max_id, names):
for (time, s) in schedule:
if s not in names:
if s in shorthands:
names[s] = shorthands[s][0]
names[s] = (shorthands[s][0], 1)
else:
names[s] = (max_id, 1)
max_id = max_id + 1
......@@ -111,7 +111,7 @@ def print_strat_table(
)
else:
output_file.write(
f"\\node[dup,minimum width={width}cm] at ({x},{y}) {{{node_str}}};\n"
f"\\node[highlight,minimum width={width}cm] at ({x},{y}) {{{node_str}}};\n"
)
x = x + width
......@@ -221,7 +221,7 @@ if __name__ == "__main__":
for row in reader:
strategy = row["strategy"]
shorthand = row["shorthand"]
highlight = bool(row["highlight"])
highlight = row["highlight"] in ["yes", "true", "1"]
shorthands[strategy] = (shorthand, highlight)
map(lambda s: cut_off(total_time, s), schedules)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment