Skip to content

Commit

Permalink
changing run
Browse files Browse the repository at this point in the history
  • Loading branch information
carlan1 committed Oct 19, 2023
1 parent e846748 commit 96de828
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cortex/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 96de828

Please sign in to comment.