aboutsummaryrefslogtreecommitdiffstats
path: root/csit.infra.dash/app/cdash
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2023-02-17 14:03:22 +0100
committerTibor Frank <tifrank@cisco.com>2023-02-17 14:26:25 +0100
commit88b65b76595748f0b5c3d057088516d13c376a4c (patch)
treefddd629051ceeb5b1ed5daa6894c9bbad5f3767e /csit.infra.dash/app/cdash
parent098f1cfb6b4d8cedc634e3db80d3d1463b3502ef (diff)
C-Dash: fix latency graphs for iterative data
Signed-off-by: Tibor Frank <tifrank@cisco.com> Change-Id: I7a4a74ead1fa9573206fccab72a70216da082050
Diffstat (limited to 'csit.infra.dash/app/cdash')
-rw-r--r--csit.infra.dash/app/cdash/report/graphs.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/csit.infra.dash/app/cdash/report/graphs.py b/csit.infra.dash/app/cdash/report/graphs.py
index 2d1f4b1873..870f16a533 100644
--- a/csit.infra.dash/app/cdash/report/graphs.py
+++ b/csit.infra.dash/app/cdash/report/graphs.py
@@ -121,16 +121,11 @@ def graph_iterative(data: pd.DataFrame, sel:dict, layout: dict,
if itm["testtype"] == "mrr":
y_data_raw = itm_data[C.VALUE_ITER[ttype]].to_list()[0]
- y_data = [(y * norm_factor) for y in y_data_raw]
- if len(y_data) > 0:
- y_tput_max = \
- max(y_data) if max(y_data) > y_tput_max else y_tput_max
else:
y_data_raw = itm_data[C.VALUE_ITER[ttype]].to_list()
- y_data = [(y * norm_factor) for y in y_data_raw]
- if y_data:
- y_tput_max = \
- max(y_data) if max(y_data) > y_tput_max else y_tput_max
+ y_data = [(y * norm_factor) for y in y_data_raw]
+ if y_data:
+ y_tput_max = max(max(y_data), y_tput_max)
nr_of_samples = len(y_data)
tput_kwargs = dict(
@@ -153,7 +148,10 @@ def graph_iterative(data: pd.DataFrame, sel:dict, layout: dict,
y_lat_row = itm_data[C.VALUE_ITER["pdr-lat"]].to_list()
y_lat = [(y / norm_factor) for y in y_lat_row]
if y_lat:
- y_lat_max = max(y_lat) if max(y_lat) > y_lat_max else y_lat_max
+ try:
+ y_lat_max = max(max(y_lat), y_lat_max)
+ except TypeError:
+ continue
nr_of_samples = len(y_lat)
lat_kwargs = dict(
y=y_lat,