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
Vectorize dividend ratio calc #2298
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@llllllllll I posted some notes here. I think there might be some subtle issues with how we're handling boundary conditions in the vectorized date lookup.
zipline/data/adjustments.py
Outdated
) | ||
|
||
positive_ratio_mask = ratio > 0 | ||
for ix in np.flatnonzero(~positive_ratio_mask): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since NaN > 0
is False, I think this is going to double-warn for NaN ratios.
2ca4110
to
fbdc5c9
Compare
1809bee
to
4cee449
Compare
No description provided.