Skip to content

Commit

Permalink
Merge pull request #153 from BIDMCDigitalPsychiatry/run
Browse files Browse the repository at this point in the history
changing run
  • Loading branch information
carlan1 authored Oct 19, 2023
2 parents e846748 + 96de828 commit 6afeac7
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 6afeac7

Please sign in to comment.