wadpac / GGIR

Code corresponding to R package GGIR
https://wadpac.github.io/GGIR/
Apache License 2.0
99 stars 62 forks source link

Issue1198 addfirstwake #1199

Closed jhmigueles closed 1 month ago

jhmigueles commented 1 month ago

Fixes #1198 => in those cases in which the first wake time needs to be detected in part 5 (with g.part5.addfirstwake) and no sustained inactivity bouts have been detected from the begining of the recording until the first detected night, then GGIR struggled to define the first wake up and triggered an error.

This scenario is very rare, and most likely in those study protocols in which the recordings start early in the morning and participants do not wear the devices durint nighttime.

Checklist before merging:

If NEW GGIR parameter(s) were added then these NEW parameter(s) are:

If GGIR parameter(s) were deprecated these parameter(s) are: