childmindresearch / wristpy

https://childmindresearch.github.io/wristpy/
GNU Lesser General Public License v2.1
2 stars 1 forks source link

Feat: Implement default sleep detection #57

Closed Asanto32 closed 1 month ago

Asanto32 commented 1 month ago

Resolves #40 Adds the SleepDetection class to analytics.py, this function runs the default GGIR sleep detection algorithm and returns an instance of the SleepWindow data class that contains a list of the onset-wakeup time pairs for each SleepWindow.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 97.80220% with 2 lines in your changes missing coverage. Please review.

Project coverage is 99.11%. Comparing base (d4ab484) to head (3f7be33).

Files Patch % Lines
src/wristpy/processing/analytics.py 97.80% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #57 +/- ## =============================================== - Coverage 100.00% 99.11% -0.89% =============================================== Files 4 5 +1 Lines 134 225 +91 =============================================== + Hits 134 223 +89 - Misses 0 2 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.