aboutsummaryrefslogtreecommitdiffstats
path: root/csit.infra.dash/app/cdash/comparisons/tables.py
diff options
context:
space:
mode:
Diffstat (limited to 'csit.infra.dash/app/cdash/comparisons/tables.py')
-rw-r--r--csit.infra.dash/app/cdash/comparisons/tables.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/csit.infra.dash/app/cdash/comparisons/tables.py b/csit.infra.dash/app/cdash/comparisons/tables.py
index 18f9404f0a..0e32f38b6c 100644
--- a/csit.infra.dash/app/cdash/comparisons/tables.py
+++ b/csit.infra.dash/app/cdash/comparisons/tables.py
@@ -95,15 +95,14 @@ def select_comp_data(
tmp_df.extend(l_itm)
l_df = tmp_df
- if remove_outliers:
- q1 = percentile(l_df, 25, method=C.COMP_PERCENTILE_METHOD)
- q3 = percentile(l_df, 75, method=C.COMP_PERCENTILE_METHOD)
- irq = q3 - q1
- lif = q1 - C.COMP_OUTLIER_TYPE * irq
- uif = q3 + C.COMP_OUTLIER_TYPE * irq
- l_df = [i for i in l_df if i >= lif and i <= uif]
-
try:
+ if remove_outliers:
+ q1 = percentile(l_df, 25, method=C.COMP_PERCENTILE_METHOD)
+ q3 = percentile(l_df, 75, method=C.COMP_PERCENTILE_METHOD)
+ irq = q3 - q1
+ lif = q1 - C.COMP_OUTLIER_TYPE * irq
+ uif = q3 + C.COMP_OUTLIER_TYPE * irq
+ l_df = [i for i in l_df if i >= lif and i <= uif]
mean_val = mean(l_df)
std_val = std(l_df)
except (TypeError, ValueError):