From 87a999c109152b559aafdf7e516ed2919ca86a29 Mon Sep 17 00:00:00 2001 From: Coda Phillips <cphillips@sean.ssec.wisc.edu> Date: Mon, 18 Jul 2016 11:18:30 -0500 Subject: [PATCH] Use scan_for_outliers for HBB too --- electronic_checks.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/electronic_checks.py b/electronic_checks.py index 6eaf09f..43a0238 100644 --- a/electronic_checks.py +++ b/electronic_checks.py @@ -9,9 +9,10 @@ def find_bb_outliers(frame, parameters, bb): window_length = parameters.get('window_length', 50) if bb == 'HBB': - bbb_outliers = _find_6sigma_outliers(frame['{}bottomTemp'.format(bb)], window_length) - bba_outliers = _find_6sigma_outliers(frame['{}apexTemp'.format(bb)], window_length) - bbt_outliers = _find_6sigma_outliers(frame['{}topTemp'.format(bb)], window_length) + delta_thresh = .001 + bbb_outliers = np.array(list(_scan_for_outliers(frame, '{}bottomTemp'.format(bb), delta_thresh))) + bba_outliers = np.array(list(_scan_for_outliers(frame, '{}apexTemp'.format(bb), delta_thresh))) + bbt_outliers = np.array(list(_scan_for_outliers(frame, '{}topTemp'.format(bb), delta_thresh))) else: delta_thresh = .01 bbb_outliers = np.array(list(_scan_for_outliers(frame, '{}bottomTemp'.format(bb), delta_thresh))) -- GitLab