Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-1041: Trending dashboard
[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
25be09f
..
567b889
100644
(file)
--- a/
resources/tools/presentation/generator_CPTA.py
+++ b/
resources/tools/presentation/generator_CPTA.py
@@
-25,7
+25,7
@@
import numpy as np
import pandas as pd
from collections import OrderedDict
import pandas as pd
from collections import OrderedDict
-from utils import
find
_outliers, archive_input_data, execute_command
+from utils import
split
_outliers, archive_input_data, execute_command
# Command to build the html format of the report
# Command to build the html format of the report
@@
-247,7
+247,8
@@
def _generate_trending_traces(in_data, build_info, period, moving_win_size=10,
data_pd = pd.Series(data_y, index=data_x)
data_pd = pd.Series(data_y, index=data_x)
- t_data, outliers = find_outliers(data_pd, outlier_const=1.5)
+ t_data, outliers = split_outliers(data_pd, outlier_const=1.5,
+ window=moving_win_size)
results = _evaluate_results(data_pd, t_data, window=moving_win_size)
anomalies = pd.Series()
results = _evaluate_results(data_pd, t_data, window=moving_win_size)
anomalies = pd.Series()
@@
-297,7
+298,7
@@
def _generate_trending_traces(in_data, build_info, period, moving_win_size=10,
hoverinfo="none",
showlegend=True,
legendgroup=name,
hoverinfo="none",
showlegend=True,
legendgroup=name,
- name="{name}
: outlier
s".format(name=name),
+ name="{name}
-anomalie
s".format(name=name),
marker={
"size": 15,
"symbol": "circle-open",
marker={
"size": 15,
"symbol": "circle-open",