-
Couldn't load subscription status.
- Fork 16
Refactor depcode #64
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
Refactor depcode #64
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.
Looks good. I have some comments about variable naming etc. Also, you seem to have some pep8 issues.
saltproc/depcode.py
Outdated
| ---------- | ||
| dep_file : str | ||
| Path to file containing results of depletion simulation | ||
| moment : int |
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.
This doesnt seem very intuitive. Why not a boolean with a variable name read_at_start
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 agree. moment makes me think of moment of force, stuff like that. I'll look into changing this.
Co-authored-by: Gwendolyn Chee <[email protected]>
Co-authored-by: Gwendolyn Chee <[email protected]>
Co-authored-by: Gwendolyn Chee <[email protected]>
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! Everything seems to be working as well when I ran it with the msbr example case (had to change Andrei's cross section locations to my own and create an empty "data" directory in saltproc, but had to do that before anyways).
| Path to user template file for depletion code | ||
| inp : str | ||
| Path to input file for depletion code rerunning | ||
| reactor : Reactor |
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 this data type is correct
| Contains information about power load curve and cumulative | ||
| depletion time for the integration test. | ||
| dts : int | ||
| dep_step : int |
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 change here, much more clear variable name than dts
|
@gwenchee @LukeSeifert @munkm I believe I've addressed all requested changes, so if there aren't any more issues could one of you approve so we can merge? |
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.
You haven't addressed the moment comment we discussed above but besides that LGTM!
|
@gwenchee did you see my follow up comment about that?
I guess since we are only every using 0 or 1 as the value for |
This PR changes the structure of the
Depcodeclass to use python's Abstract Base Class to make the changes outlined in #59 .This PR also adjusts the import statements in the test suite to match the new class names.