From 96de8280b5fc4c6d8293c0b95f726d219c550e2f Mon Sep 17 00:00:00 2001 From: carlan1 Date: Thu, 19 Oct 2023 18:36:01 +0000 Subject: [PATCH] changing run --- cortex/run.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cortex/run.py b/cortex/run.py index 7ce58a0..99dd992 100644 --- a/cortex/run.py +++ b/cortex/run.py @@ -112,6 +112,9 @@ def run(id_or_set, features=[], feature_params={}, start=None, end=None, _res = get_feature_for_participant(participant, f, params_f, start, end, resolution, cache) + if _res is None: + log.info("Participant has no passive data. Returning None.") + return None _res2 = pd.DataFrame.from_dict(_res['data']) if _res2.shape[0] > 0: # If no data exists, don't bother appending the df.