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

Possible mistake in user document #18

Open
Yukun-Xie opened this issue Sep 20, 2022 · 0 comments
Open

Possible mistake in user document #18

Yukun-Xie opened this issue Sep 20, 2022 · 0 comments

Comments

@Yukun-Xie
Copy link
Collaborator

def timeindexer(self, l, value, a, b):
if a < b: #Here, it should be a <= b.
#Otherwise, if the a=b, the person will be 'away' for a whole day, and you will get a 0 denominator in ‘pdf /= np.sum(pdf)’
l[a:b] = value
else:
l[a:len(l)] = value
l[0:b] = value
return l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants