From 06f5010c86144353a777afe6d72730585a31c7dd Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 22 Feb 2020 10:41:03 +0100 Subject: add verbosity flag to summarize --- src/plots.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plots.py') diff --git a/src/plots.py b/src/plots.py index a5bd32e..c7750d8 100644 --- a/src/plots.py +++ b/src/plots.py @@ -25,7 +25,7 @@ import numpy as np import tikzplotlib import src.globalvars -from src.util import print_warn +from src.util import print_debug, print_warn # This is useful when evaluating strings in the plot functions. str(np.NaN) == "nan" nan = np.NaN @@ -52,8 +52,8 @@ def _eval_with_stat(bench, evaluation, alloc, perm, stat): try: res = evaluation.format(**bench.results["stats"][alloc][perm][stat]) except KeyError: - print_warn(traceback.format_exc()) - print_warn(f"For {alloc} in {perm}") + print_debug(traceback.format_exc()) + print_warn(f"KeyError while expanding {evaluation} for {alloc} and {perm}") return nan return eval(res) -- cgit v1.2.3