aboutsummaryrefslogtreecommitdiff
path: root/src/plots.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-22 10:41:03 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-22 10:41:03 +0100
commit06f5010c86144353a777afe6d72730585a31c7dd (patch)
tree6b91cd76b03af3102c71a854ec291c053f2d0d91 /src/plots.py
parent0c4a1eb7a4e49872d495bcd8c26d4a0b0375e096 (diff)
downloadallocbench-06f5010c86144353a777afe6d72730585a31c7dd.tar.gz
allocbench-06f5010c86144353a777afe6d72730585a31c7dd.zip
add verbosity flag to summarize
Diffstat (limited to 'src/plots.py')
-rw-r--r--src/plots.py6
1 files changed, 3 insertions, 3 deletions
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)