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

What is the expected convention for sleep? #35

Closed
rouzbeh opened this issue Aug 24, 2022 · 2 comments
Closed

What is the expected convention for sleep? #35

rouzbeh opened this issue Aug 24, 2022 · 2 comments

Comments

@rouzbeh
Copy link
Contributor

rouzbeh commented Aug 24, 2022

This line seems to indicate that sleep is marked as 0.

dataframe with sleep/wake scoring of night. 0 is expected to indicate *sleep*, 1 to indicate *wake*

But this line seems to contradict it:

net_sleep_time = sleep_wake[sleep_wake["sleep_wake"].eq(1)]

@richrobe
Copy link
Member

Hi @rouzbeh, thanks for pointing this out! The expected convention is 1 for sleep and 0 for wake. Hence, it's a typo in the documentation. I will update it accordingly!

@richrobe
Copy link
Member

fixed in 4684da2

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

2 participants