-
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
Patch #90 (pep8 issues, docstring consistency) #92
Conversation
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.
I made a few minor comments, but overall I think it looks good.
exec_path : str | ||
Path to Serpent2 executable. | ||
template_path : str | ||
Path to user input file for Serpent2. | ||
input_path : str | ||
Name of input file for Serpent2 rerunning. | ||
iter_matfile : str | ||
Name of iterative, rewritable material file for Serpent2 | ||
rerunning. This file is modified during the simulation. |
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.
Consider adding the optional tag to these parameters
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.
I don't think these are optional. They form the backbone of inputs that saltproc needs to run. What's your rationale?
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.
I was thinking the default values would typically work, but yeah I think you're right that these aren't really optional.
saltproc/depcode.py
Outdated
Parameters | ||
----------- | ||
input_file: str | ||
input_file : str | ||
Serpent2 input file name and path. | ||
|
||
Returns | ||
-------- |
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.
There is one extra "-" on the Parameters
and the Returns
sections
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.
Nice catch
@@ -186,25 +199,25 @@ def __init__(self, | |||
active_cycles, | |||
inactive_cycles) | |||
|
|||
def change_sim_par(self, data): | |||
def change_sim_par(self, template_data): |
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.
template_data
is a much better variable name, nice work
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.
Looks good!
Summary of changes
#90 had some pep8 issues and docstring inconsistencies that were not addressed before merging. This PR addresses those issues.
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.