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

Vectorize dividend ratio calc #2298

Merged
merged 8 commits into from Sep 26, 2018
Merged

Conversation

llllllllll
Copy link
Contributor

No description provided.

Copy link
Contributor

@ssanderson ssanderson left a 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/testing/core.py Show resolved Hide resolved
zipline/data/adjustments.py Show resolved Hide resolved
zipline/data/adjustments.py Show resolved Hide resolved
)

positive_ratio_mask = ratio > 0
for ix in np.flatnonzero(~positive_ratio_mask):
Copy link
Contributor

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.

zipline/data/adjustments.py Show resolved Hide resolved
@llllllllll llllllllll changed the base branch from hdf5-daily-bar-reader to master September 26, 2018 18:17
@llllllllll llllllllll closed this Sep 26, 2018
@llllllllll llllllllll reopened this Sep 26, 2018
@richafrank richafrank merged commit df57ec5 into master Sep 26, 2018
@richafrank richafrank deleted the vectorize-dividend-ratio-calc branch September 26, 2018 21:37
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.

None yet

3 participants