Skip to content

Commit

Permalink
Use percentages in overall summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Bechberger committed Nov 27, 2019
1 parent 9f6c338 commit 4bf3f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion temci/report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def _full_single_property_comp_table(self, property: str = None) -> '_Table':
<p>The maximum standard deviation of the left and the right relative to the mean of the right is <b>%s</b>.</p>
""" % (property, property, pair.first.mean(), pair.second.mean(),
self._percent_format.format(pair.max_std_dev() / pair.second.mean()))
rel_diff = FNumber(pair.first_rel_to_second(), rel_deviation=pair.max_std_dev() / pair.second.mean())
rel_diff = FNumber(pair.first_rel_to_second(), rel_deviation=pair.max_std_dev() / pair.second.mean(), is_percent=True)
cell = _Cell(self, content=str(rel_diff), popover=popover, color_class_obj=pair, show_click_on_info=True)
cell.modal_id = self._short_summary_modal(pair)
table[i, j] = cell
Expand Down

0 comments on commit 4bf3f5b

Please sign in to comment.