Skip to content

Commit 051b0ca

Browse files
diffreports2html: avoid pointless gout comparisons (#25)
1 parent c0d595c commit 051b0ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modeldb/report.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ def diff_reports(report1_json, report2_json):
6060
curated_b = curate_run_data(data_b[k]["nrn_run"], model=int(k))
6161
if curated_a != curated_b:
6262
diff_dict[k] = hd.make_table(curated_a, curated_b, context=True).replace("\n", " ")
63-
if "do_not_run" not in data_a[k]:
63+
64+
# List of keys that make gout comparison pointless
65+
skip_gout_keys = {"do_not_run", "moderr", "nrn_run_err"}
66+
if skip_gout_keys.isdisjoint(data_a[k]) and skip_gout_keys.isdisjoint(data_b[k]):
6467
gout_a_file = os.path.join(data_a[k]["run_info"]["start_dir"], "gout")
6568
gout_b_file = os.path.join(data_b[k]["run_info"]["start_dir"], "gout")
6669

0 commit comments

Comments
 (0)