Skip to content

Commit fc73f08

Browse files
diffreports2html: nrn_run shall show the directory (#23)
* make model name searchable * be in line with git-like diff for gout
1 parent 5c2050d commit fc73f08

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
@@ -59,7 +59,10 @@ def diff_reports(report1_json, report2_json):
5959
curated_a = curate_run_data(data_a[k]["nrn_run"], model=int(k))
6060
curated_b = curate_run_data(data_b[k]["nrn_run"], model=int(k))
6161
if curated_a != curated_b:
62-
diff_dict[k] = hd.make_table(curated_a, curated_b, context=True).replace("\n", " ")
62+
diff_dict[k] = hd.make_table(curated_a, curated_b,
63+
fromdesc=data_a[k]["run_info"]["start_dir"],
64+
todesc=data_b[k]["run_info"]["start_dir"],
65+
context=True).replace("\n", " ")
6366

6467
# List of keys that make gout comparison pointless
6568
skip_gout_keys = {"do_not_run", "moderr", "nrn_run_err"}

0 commit comments

Comments
 (0)