-
Notifications
You must be signed in to change notification settings - Fork 16
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
Update web-hosted API docs #87
Conversation
Check for Sphinx metadata in the current version of the |
This PR is ready for review |
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.
Comments
depcode.DepcodeSerpent does not document parameters as being optional (i.e. codename = 'sss2' documented as codename (str) – Name of depletion code.) (possibly change to codename (str : optional)?).
In the "returns" sections, there is some inconsistency (i.e. get_nuc_name in depcode.DepcodeSerpent uses bullets and variable names while others list return type and describe what gets returned).
This is also present in app module (app.reprocessing and app.refill, seems to be different if multiple values are being returned).
Consider adding brief documentation for depcode.add_params.
In the process.Process and reactor.Reactor documentation, the class parameters are all listed in init, but in depcode they are listed directly under the class and not in init. (Though in separator.Separator, the parameters seem to be listed in both and in simulation.Simulation they are listed under init, so I'm not sure which way its meant to be).
Summary
Overall looks good! The things I pointed out are minor, so just let me know when you've made any changes you want to make and I'll merge.
Hi Luke, thanks for your comments. In the future could you use the in-line commenting system when making a review? It really helps speed up the processes of making changes based on review feedback.
Good point about specifying parameters with default values to be optional. As for the
I've removed the
Great catch! I totally missed this. Should be fixed now.
So this issue turns out to be a much bigger rabbit hole that I initially thought. There is a PEP 257 which tells us:
I interpret this as telling us that we need to document our public however, I checked some code examples in OpenMC they don't seem to follow this convention. There was also a lively discussion in this stack overflow post. My opinion is that as long as it's consistent and makes sense, it shouldn't matter. Now from an implementation standpoint, I think we should follow PEP like @mehmeturkmen has done (good job Mehmet!). Additionally, most of the classes in the API seem to follow this. Will be fixing this as well. |
Looks good! I'll make sure to use the in-line comments next time, I had forgotten to go back and put them in this time. |
Summary of changes
This PR updates the generated files for the web-hosted documentation to reflect the changes in #64.
Do not merge until changes from #90 have been applied.
Types of changes
Required for Merging
Associated Issues and PRs
doc
additions, docstring typo fixes, cross section processing scripts #90Associated Developers
Checklist for Reviewers
Reviewers should use this link to get to the
Review Checklist before they begin their review.