-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add docstrings for compress/decompress. #34
Conversation
@nkemnitz Do you mind doing a quick sanity check of the documentation that this PR is adding? Thanks! |
@william-silversmith mind being a second set of eyes to review this documentation I'm adding? |
pyzfp.pyx
Outdated
The rate of the compressed data. | ||
This will use ZFP in fixed-rate mode. | ||
One of tolerance, precision, or rate must be specified. | ||
parallel : bool, optional |
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.
Should note the default is True
. I've found that Cython doesn't let you see the function sig so the documentation has to be manually added (or you can add a pure python wrapper around the cython call).
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.
Did a quick test with help(pyzfp.compress)
and it seemed to work fine.
Also raise error for parallel decompress.
Fixes #26