import prettytable
from string import replace
-from pprint import pformat
from errors import PresentationError
from utils import mean, stdev, relative_change
line_lst = list()
for item in data:
if isinstance(item["data"], str):
+ # Remove -?drdisc from the end
+ if item["data"].endswith("drdisc"):
+ item["data"] = item["data"][:-8]
line_lst.append(item["data"])
elif isinstance(item["data"], float):
line_lst.append("{:.1f}".format(item["data"]))
# Transform the data
data = input_data.filter_data(table)
- logging.info(data)
# Prepare the header of the tables
try:
append(tst_data["throughput"]["value"])
except TypeError:
pass # No data in output.xml for this test
- logging.info(pformat(tbl_dict))
for job, builds in table["compare"]["data"].items():
for build in builds:
except TypeError:
tbl_dict.pop(tst_name, None)
- logging.info(pformat(tbl_dict))
-
tbl_lst = list()
for tst_name in tbl_dict.keys():
item = [tbl_dict[tst_name]["name"], ]
# Sort the table according to the relative change
tbl_lst.sort(key=lambda rel: rel[-1], reverse=True)
- logging.info(pformat(tbl_lst))
# Generate tables:
# All tests in csv: