Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Adding support for single threshold non-wear detection across watch platforms #105

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

Asanto32
Copy link
Collaborator

Resolves #99

Re-based to #71 , this PR modifies the detect_nonwear function to default to using a single threshold std_criteria. This allows the non-wear detection algorithm to work with both .gt3x and .bin files without the need of chaning the range_criteria

Test of different non wear detection methods
Making std only the default by setting range_criteria = None, if not None, then we use it
Test of different non wear detection methods
Making std only the default by setting range_criteria = None, if not None, then we use it
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.66%. Comparing base (bb3eb39) to head (198f5b9).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #105      +/-   ##
==========================================
+ Coverage   96.34%   96.66%   +0.31%     
==========================================
  Files          11       11              
  Lines         575      569       -6     
==========================================
- Hits          554      550       -4     
+ Misses         21       19       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Adds the range_criteria as a user-defined setting for non-wear detection
Adding tests with user-defined range criteria in config
@Asanto32
Copy link
Collaborator Author

Probably good for a review but might be best to finalize it after the orchestrator is merged? Or maybe just get some feedback on using config.Settings to pass Optional range_criteria.

Copy link
Collaborator

@frey-perez frey-perez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments, nothing too big.

src/wristpy/core/config.py Outdated Show resolved Hide resolved
tests/smoke/test_orchestrator_smoke.py Outdated Show resolved Hide resolved
tests/smoke/test_orchestrator_smoke.py Outdated Show resolved Hide resolved
tests/unit/test_metrics.py Outdated Show resolved Hide resolved
Moving to single feature non-wear detection for all watches by only using std of acceleration
Fixing smoke test as per Freymon's PR comments
Fix docstrings for single criteria
Removing outdated RANGE_CRITERIA
Ruff fix for unused import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task: Modify the non-wear detection algorithm to account for various watch types
2 participants