-
Notifications
You must be signed in to change notification settings - Fork 9
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 sphere to the docs #118
add sphere to the docs #118
Conversation
Maybe, let's keep it open until @milancurcic sees it because I might be forgetting other things. |
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.
It's correctly included in the API docs index.
However, do check one thing: I noticed that your format of docstrings (e.g. like the one you used here) are not properly rendered by Sphinx. I don't know if it's a missing Sphinx setting or just a bad format. In contrast, look at the dataformat.unpack_ragged
docstring where I used the NumPy style format and how it's rendered.
I think this PR should just go ahead as is, but in a separate PR we need to go over all docstrings and fix them up. GitHub Copilot is now pretty good at autogenerating them. I suggest just following the NumPy style guide for docstrings.
I'll take a look later. I can probably go through all the files and do something uniform. |
ps: my branch was not up-to-date with main, so I guess docstring should be fixed in another PR as you suggested. Also, I'm not sure how to proceed, for example it looks like you wrote: |
Yes, I wasn't 100% sure what to do about this either. I followed NumPy doc style to use array-like to indicate that the function will work with Either way, the type hints in the docstring don't need to exactly match those in the function definition. The ones in the function definition are for IDEs to parse, and the ones in the docstring merely need to make sense to the reader. I think we just need to pick what makes sense for us in this project, and be consistent with it. |
No description provided.