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

detect_nonwear wear time calculation does not account for NA #47

Open
chanshing opened this issue Sep 16, 2024 · 0 comments
Open

detect_nonwear wear time calculation does not account for NA #47

chanshing opened this issue Sep 16, 2024 · 0 comments
Assignees

Comments

@chanshing
Copy link
Member

chanshing commented Sep 16, 2024

def detect_nonwear(data, patience='90m', window='10s', stdtol=15 / 1000):

Wear time and nonwear time do not account for NA. The calculation in

total_wear = (t.diff().pipe(lambda x: x[x < tol].sum()).total_seconds())
is correct but gets overwritten by detect_nonwear() info.

@chanshing chanshing self-assigned this Sep 16, 2024
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

No branches or pull requests

1 participant