Skip to content

Commit

Permalink
drop gout for single report
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsavulescu committed Mar 1, 2023
1 parent 0f4d4bd commit 2955308
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modeldb/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,15 @@ def report2html(args=None):
report_filename = os.path.join(os.path.splitext(os.path.basename(json_report))[0] + '.html')
print('Writing {} ...'.format(report_filename))
with open(report_filename, 'w') as fh, open(json_report, 'r+') as jr:
json_report_data = json.load(jr)

# drop the gout from the json report
for model_data in json_report_data.values():
model_data.pop('gout', None)

fh.write(template.render(
title="{} : nr-modeldb-ci HTML report".format(json_report),
json_report=json.load(jr),
title="{} : nrn-modeldb-ci HTML report".format(json_report),
json_report=json_report_data,
))
print('Done.')

Expand Down

0 comments on commit 2955308

Please sign in to comment.