diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-26 15:46:12 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-26 15:46:12 +0100 |
| commit | e85f4882fe1e2a42b0fdac9f45588d4f424ebea7 (patch) | |
| tree | c520d4c11a0e4e5c78bb26faaa5fa29a34b8ad72 /src/plots.py | |
| parent | 19f858f0712aa38cd61d8380c7c879dd254804ad (diff) | |
| download | allocbench-e85f4882fe1e2a42b0fdac9f45588d4f424ebea7.tar.gz allocbench-e85f4882fe1e2a42b0fdac9f45588d4f424ebea7.zip | |
get statistic value with default
Diffstat (limited to 'src/plots.py')
| -rw-r--r-- | src/plots.py | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
