childmindresearch / wristpy

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

Feat: Adding method to remove sleep windows that overlap with non-wear #86

Closed Asanto32 closed 2 months ago

Asanto32 commented 3 months ago

Resolves #65 and #60 Adding in a function that removes the sleep windows that have any overlap with the non-wear times. Moving the _find_periods out of the GGIRSleepDetection class so it can be used across SleepDetectors and by this function

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.43%. Comparing base (d695033) to head (42d7136). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #86 +/- ## ========================================== + Coverage 99.42% 99.43% +0.01% ========================================== Files 7 7 Lines 347 355 +8 ========================================== + Hits 345 353 +8 Misses 2 2 ```

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

Asanto32 commented 3 months ago

Implementation of removing the sleep windows that overlap with non-wear periods