aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_CPTA.py
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2019-12-02 19:01:35 +0100
committerVratko Polak <vrpolak@cisco.com>2019-12-02 19:01:35 +0100
commitbd799a13a06c82e9b38097ea80ec30337edd5e8e (patch)
treea07e553c33e73a8fa28849bd8fdbbe018a8a0868 /resources/tools/presentation/generator_CPTA.py
parent627cddca1d64edb8475407a1524efb2a22249a25 (diff)
Use Jumpavg 0.2.0 in PAL
+ As a side effect, PAL is now part of "resource" package tree. - Testable only with 23558 (the rest of PAL Python 3 migration). Change-Id: Icbd90fd71458c07bced86f4bab9fa4e68282c38c Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_CPTA.py')
-rw-r--r--resources/tools/presentation/generator_CPTA.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py
index f57757f451..eec401bd1f 100644
--- a/resources/tools/presentation/generator_CPTA.py
+++ b/resources/tools/presentation/generator_CPTA.py
@@ -181,7 +181,7 @@ def _generate_trending_traces(in_data, job_name, build_info,
if "dpdk" in job_name:
hover_text.append(hover_str.format(
date=date,
- value=int(in_data[idx].avg),
+ value=int(in_data[idx]),
sut="dpdk",
build=build_info[job_name][str(idx)][1].rsplit('~', 1)[0],
period="weekly",
@@ -190,7 +190,7 @@ def _generate_trending_traces(in_data, job_name, build_info,
elif "vpp" in job_name:
hover_text.append(hover_str.format(
date=date,
- value=int(in_data[idx].avg),
+ value=int(in_data[idx]),
sut="vpp",
build=build_info[job_name][str(idx)][1].rsplit('~', 1)[0],
period="daily",
@@ -228,7 +228,7 @@ def _generate_trending_traces(in_data, job_name, build_info,
trace_samples = plgo.Scatter(
x=xaxis,
- y=[y.avg for y in data_y],
+ y=[y for y in data_y], # Was: y.avg
mode='markers',
line={
"width": 1
@@ -364,8 +364,7 @@ def _generate_all_charts(spec, input_data):
tst_lst = list()
for bld in builds_dict[job_name]:
itm = tst_data.get(int(bld), '')
- if not isinstance(itm, str):
- itm = itm.avg
+ # CSIT-1180: Itm will be list, compute stats.
tst_lst.append(str(itm))
csv_tbl.append("{0},".format(tst_name) + ",".join(tst_lst) + '\n')