aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_CPTA.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/presentation/generator_CPTA.py')
-rw-r--r--resources/tools/presentation/generator_CPTA.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py
index d72be3d589..e27a52172b 100644
--- a/resources/tools/presentation/generator_CPTA.py
+++ b/resources/tools/presentation/generator_CPTA.py
@@ -176,9 +176,9 @@ def _evaluate_results(trimmed_data, window=10):
or np.isnan(tmm[build_nr])
or np.isnan(tmstd[build_nr])):
results.append(0.0)
- elif value < (tmm[build_nr] - 2 * tmstd[build_nr]):
+ elif value < (tmm[build_nr] - 3 * tmstd[build_nr]):
results.append(0.33)
- elif value > (tmm[build_nr] + 2 * tmstd[build_nr]):
+ elif value > (tmm[build_nr] + 3 * tmstd[build_nr]):
results.append(1.0)
else:
results.append(0.66)
@@ -187,10 +187,10 @@ def _evaluate_results(trimmed_data, window=10):
try:
tmm = np.median(trimmed_data)
tmstd = np.std(trimmed_data)
- if trimmed_data.values[-1] < (tmm - 2 * tmstd):
+ if trimmed_data.values[-1] < (tmm - 3 * tmstd):
results.append(0.33)
- elif (tmm - 2 * tmstd) <= trimmed_data.values[-1] <= (
- tmm + 2 * tmstd):
+ elif (tmm - 3 * tmstd) <= trimmed_data.values[-1] <= (
+ tmm + 3 * tmstd):
results.append(0.66)
else:
results.append(1.0)