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

Add docstrings for compress/decompress. #34

Merged
merged 2 commits into from
Jul 26, 2022
Merged

Add docstrings for compress/decompress. #34

merged 2 commits into from
Jul 26, 2022

Conversation

navjotk
Copy link
Owner

@navjotk navjotk commented Jul 11, 2022

Also raise error for parallel decompress.

Fixes #26

@navjotk
Copy link
Owner Author

navjotk commented Jul 11, 2022

@nkemnitz Do you mind doing a quick sanity check of the documentation that this PR is adding? Thanks!

@navjotk
Copy link
Owner Author

navjotk commented Jul 15, 2022

@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
Copy link
Contributor

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).

Copy link
Owner Author

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.

pyzfp.pyx Outdated Show resolved Hide resolved
pyzfp.pyx Show resolved Hide resolved
pyzfp.pyx Outdated Show resolved Hide resolved
pyzfp.pyx Outdated Show resolved Hide resolved
@navjotk navjotk merged commit c9cd435 into master Jul 26, 2022
@navjotk navjotk deleted the docstrings branch July 26, 2022 14:22
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.

No documentation for compress or decompress
2 participants