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

ENH: Format zipline assets before displaying #358

Merged
merged 5 commits into from
Dec 14, 2016
Merged

Conversation

gusgordon
Copy link
Contributor

@gusgordon gusgordon commented Dec 13, 2016

Adds a new function, utils.format_asset, which will format zipline assets if they are about to be displayed. The formatting is done only just before the display.

Also bumps the latest version of PyMC3 for tests.


try:
import zipline.assets._assets as zipline_assets
if isinstance(asset, (zipline_assets.Equity, zipline_assets.Future)):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good use case for the base class zipline.assets.Asset?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - thanks!

@gusgordon gusgordon changed the title Add new function for formatting zipline assets ENH: Format zipline assets before displaying Dec 13, 2016
@gusgordon gusgordon merged commit adcdea8 into master Dec 14, 2016
@gusgordon gusgordon deleted the format-assets branch December 15, 2016 22:12
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.

2 participants