From e85f4882fe1e2a42b0fdac9f45588d4f424ebea7 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 26 Feb 2020 15:46:12 +0100 Subject: get statistic value with default --- src/plots.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plots.py b/src/plots.py index 5962367..c254741 100644 --- a/src/plots.py +++ b/src/plots.py @@ -293,9 +293,11 @@ def export_stats_to_dataref(bench, datapoint, path=None): for alloc in bench.results["allocators"]: for perm in bench.iterate_args(args=bench.results["args"]): for statistic, values in stats[alloc][perm].items(): - cur_line = line.format(bench.name, alloc, + cur_line = line.format(bench.name, + alloc, "/".join([str(p) for p in list(perm)]), - statistic, values[datapoint]) + statistic, + values.get(datapoint, nan)) # Replace empty outliers cur_line.replace("[]", "") # Replace underscores -- cgit v1.2.3