Skip to content

Commit

Permalink
wns_report: include dissolved macros line
Browse files Browse the repository at this point in the history
Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed Oct 28, 2024
1 parent 5342ecd commit 94aa0ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wns_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def main():
logs = sorted(map(os.path.basename, pathlib.Path(log_dir).glob("*.log")))
logs_dir = os.path.join(log_dir, "..")

variables = sorted(set(k for v in sweep.values() for k in v.get("variables", {}).keys()))
variables = sorted(
set(k for v in sweep.values() for k in v.get("variables", {}).keys())
)

table_data = None
for variant in sweep:
Expand All @@ -93,7 +95,7 @@ def main():
stats = yaml.safe_load(file)
names = sorted(stats.keys())
if table_data is None:
table_data = [["Variant"] + names + variables + logs]
table_data = [["Variant"] + names + variables + ["dissolve"] + logs]
table_data.append(
(
[variant]
Expand All @@ -107,6 +109,7 @@ def main():
)
for variable in variables
]
+ [" ".join(sweep[variant].get("dissolve", []))]
+ [
print_log_dir_times(os.path.join(logs_dir, variant, log))
for log in logs
Expand Down

0 comments on commit 94aa0ba

Please sign in to comment.