Skip to content

Commit

Permalink
Don't use word "erroneous" in report
Browse files Browse the repository at this point in the history
Related to #105

Fix #104 too (just a single change)
  • Loading branch information
Johannes Bechberger committed Aug 13, 2020
1 parent 23df645 commit d90c6a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions temci/report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -1465,11 +1465,11 @@ def _color_explanation(obj: BaseStatObject) -> str:
color_class = "div_" + _color_class(obj)
msg = ""
if obj.has_errors():
msg = "This color means that the corresponding data set is erroneous " \
"({} severe warnings and {} warnings).".format(len(obj.errors()), len(obj.warnings()))
msg = "This color means that there are severe warnings related to the corresponding data set " \
"({} severe warning(s) and {} warning(s)).".format(len(obj.errors()), len(obj.warnings()))
elif obj.has_warnings():
msg = "This color means that the corresponding data set could be erroneous " \
"(with {} warnings).".format(len(obj.warnings()))
msg = "This color means that there are warnings related to the corresponding data set " \
"(with {} warning(s)).".format(len(obj.warnings()))
elif isinstance(obj, TestedPairProperty) and obj.is_equal() is not None:
msg = "This color means that everything is probably okay with the corresponding data" \
" and that the tester could make a decision."
Expand Down
2 changes: 1 addition & 1 deletion temci/report/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ class EffectToSmallWarning(StatWarning):

message = "The mean difference per standard deviation of {props} is less than {b_val}."
hint = "Try to reduce the standard deviation if you think that the measured difference is significant: " \
"If you use the exec run driver, consider using the stop_start plugin, preheat and sleep plugins. " \
"If you use the exec run driver, consider using a preset. " \
"Also consider increasing the number of measured runs."
border_value = 1
value_format = StatMessageValueFormat.FLOAT
Expand Down

0 comments on commit d90c6a0

Please sign in to comment.