Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wns_report: include dissolved macros line #181

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
wns_report: include dissolved macros line
Signed-off-by: Øyvind Harboe <[email protected]>
oharboe committed Oct 28, 2024
commit b07ca697fef246c7570fbbc004a5e500cdd43a64
7 changes: 5 additions & 2 deletions wns_report.py
Original file line number Diff line number Diff line change
@@ -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:
@@ -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]
@@ -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