-# Copyright (c) 2021 Cisco and/or its affiliates.
+# Copyright (c) 2023 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
try:
val_max = max(df_y[col])
if val_max:
- y_max.append(int(val_max / 1e6))
+ if test_type in (u"VSAP_CPS", u"VSAP_RPS"):
+ y_max.append(int(val_max))
+ else:
+ y_max.append(int(val_max / 1e6))
except (ValueError, TypeError) as err:
logging.error(repr(err))
continue
),
hoverinfo=u"y+name"
)
- box_points = plot.get(u"boxpoints", None)
- if box_points and box_points in \
+ box_points = plot.get(u"boxpoints", u"all")
+ if box_points in \
(u"all", u"outliers", u"suspectedoutliers", False):
kwargs[u"boxpoints"] = box_points
kwargs[u"jitter"] = 0.3
name=data_names[idx],
hoverinfo=u"y+name"
)
- box_points = plot.get(u"boxpoints", None)
- if box_points and box_points in \
- (u"all", u"outliers", u"suspectedoutliers", False):
+ box_points = plot.get(u"boxpoints", u"all")
+ if box_points in (u"all", u"outliers", u"suspectedoutliers", False):
kwargs[u"boxpoints"] = box_points
kwargs["jitter"] = 0.3
traces.append(plgo.Box(**kwargs))
limit = plot[u"limits"][u"nic"][u"cx556a"]
elif u"e810cq" in test_name:
limit = plot[u"limits"][u"nic"][u"e810cq"]
+ elif u"e810xxv" in test_name:
+ limit = plot[u"limits"][u"nic"][u"e810xxv"]
+ elif u"e822cq" in test_name:
+ limit = plot[u"limits"][u"nic"][u"e822cq"]
else:
limit = 0
if limit > nic_limit: