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 to all functions #188

Open
paddyroddy opened this issue Sep 10, 2024 · 0 comments · May be fixed by #381
Open

Add docstrings to all functions #188

paddyroddy opened this issue Sep 10, 2024 · 0 comments · May be fixed by #381
Assignees
Labels
blocked The issue or pull request is blocked by something documentation Improvements or additions to documentation

Comments

@paddyroddy
Copy link
Member

Currently, most have them but those that are lacking do stick out in the documentation - which automatically pulls from them

@paddyroddy paddyroddy added the documentation Improvements or additions to documentation label Sep 10, 2024
paddyroddy added a commit that referenced this issue Oct 14, 2024
Closes #346. Working towards #188.

The main changes here have been:
- Remove all types in the docstrings in favour of proper static typing
(being added in #308)
- Switch from `numpydoc` to `sphinx.ext.napolean` due to
numpy/numpydoc#196

Have had to change the references to `[1]` rather than `[1]_` due to
this bug, sphinx-doc/sphinx#9689. Hopefully
this can be fixed in the future.

Example:
`glass.lensing.from_convergence`
<img width="781" alt="image"
src="https://github.com/user-attachments/assets/9b6fd087-686a-4a5c-a77a-f8a3ec9fc3e2">

Raised #350, #351.
@paddyroddy paddyroddy linked a pull request Oct 30, 2024 that will close this issue
@paddyroddy paddyroddy added the blocked The issue or pull request is blocked by something label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked The issue or pull request is blocked by something documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants