Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Trending: Add exception handling for anomalies classification
[csit.git]
/
resources
/
tools
/
presentation
/
generator_cpta.py
diff --git
a/resources/tools/presentation/generator_cpta.py
b/resources/tools/presentation/generator_cpta.py
index
db64d5f
..
4b10440
100644
(file)
--- a/
resources/tools/presentation/generator_cpta.py
+++ b/
resources/tools/presentation/generator_cpta.py
@@
-244,7
+244,12
@@
def _generate_trending_traces(in_data, job_name, build_info,
for key, value in zip(xaxis, data_y_pps):
data_pd[key] = value
for key, value in zip(xaxis, data_y_pps):
data_pd[key] = value
- anomaly_classification, avgs_pps, stdevs_pps = classify_anomalies(data_pd)
+ try:
+ anomaly_classification, avgs_pps, stdevs_pps = \
+ classify_anomalies(data_pd)
+ except ValueError as err:
+ logging.info(f"{err} Skipping")
+ return
avgs_mpps = [avg_pps / 1e6 for avg_pps in avgs_pps]
stdevs_mpps = [stdev_pps / 1e6 for stdev_pps in stdevs_pps]
avgs_mpps = [avg_pps / 1e6 for avg_pps in avgs_pps]
stdevs_mpps = [stdev_pps / 1e6 for stdev_pps in stdevs_pps]