Skip to content

Commit

Permalink
don't show overall summary for single property
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha authored and parttimenerd committed Nov 27, 2019
1 parent 7e67865 commit fbf38ed
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions temci/report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,11 @@ def report(self):
<h2>Summary</h2>
"""
inner_html += self._format_errors_and_warnings(self.stats)
inner_html += """
<h3>Overall summary</h3>
"""
inner_html += self._full_single_property_comp_table().html()
if len(self.stats.properties()) > 1:
inner_html += """
<h3>Overall summary</h3>
"""
inner_html += self._full_single_property_comp_table().html()
for prop in self.stats.properties():
inner_html += """
<h3>Summary regarding {prop}</h3>
Expand Down Expand Up @@ -479,13 +480,13 @@ def _format_excluded_data_warnings(self):
if self.excluded_data_info.excluded_run_datas:
html += """
<div class="alert alert-danger">
Excluded invalid {} (the data consists only of zeros or NaNs).
Excluded invalid {} (the data consists only of zeroes or NaNs).
</div>
""".format(join_strs(map(repr, self.excluded_data_info.excluded_run_datas)))
for descr in self.excluded_data_info.excluded_properties_per_run_data.keys():
html += """
<div class="alert alert-warning">
Excluded {} from {!r} (the data consists only of zeros or NaNs).
Excluded {} from {!r} (the data consists only of zeroes or NaNs).
</div>
""".format(join_strs(map(repr, self.excluded_data_info.excluded_properties_per_run_data[descr])),
descr)
Expand Down

0 comments on commit fbf38ed

Please sign in to comment.