diff options
| -rw-r--r-- | allocbench/plots.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/allocbench/plots.py b/allocbench/plots.py index bf47cbb..014196b 100644 --- a/allocbench/plots.py +++ b/allocbench/plots.py @@ -470,10 +470,14 @@ def export_stats_to_csv(bench, datapoint, path=None): row.append(alloc) row += list(perm._asdict().values()) row += [ - stats[alloc][perm][stat][datapoint] + stats[alloc][perm][stat].get(datapoint, nan) for stat in stats[alloc][perm] ] - row[-1] = (",".join([str(x) for x in row[-1]])) + if row[-1] is not nan: + row[-1] = (",".join([str(x) for x in row[-1]])) + else: + row[-1] = "" + rows[alloc][perm] = row # calc widths |
