diff --git a/electronic_checks.py b/electronic_checks.py index 6eaf09f42cc1723ac17c0c50f52d60672271cc1f..43a023888434a18a122a0849ca68e48a33e90f6a 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)))