From d35ceb347625b3b85f731331b60cd35f60193eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=C3=A1n=20Mu=C3=B1oz?= <amuoz@ed.ac.uk> Date: Mon, 13 Sep 2021 12:32:59 +0100 Subject: [PATCH] bugfix Former-commit-id: 1192c4f66a536723519b35356c72149a5714d28c --- core/processes/picker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/processes/picker.py b/core/processes/picker.py index 1c5b1fa8..2c057df9 100644 --- a/core/processes/picker.py +++ b/core/processes/picker.py @@ -106,7 +106,7 @@ class picker(ProcessABC): ): threshold_asint = _as_int(threshold, signals.shape[1]) case_mgr = { - "present": signals.notna().sum(axis=1) > threshold_asint, + "present": signals.apply(max_ntps, axis=1) > threshold_asint, "nonstoply_present": signals.apply(max_nonstop_ntps, axis=1) > threshold_asint, "quantile": [np.quantile(signals.values[signals.notna()], threshold)], -- GitLab