-
Notifications
You must be signed in to change notification settings - Fork 94
thKernel data type fix #1855
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
thKernel data type fix #1855
Conversation
The thKernel setting is meant to store the name of the primary thermal hydraulics solver for a run. The default value was False, causing the data type of thKernel to be bool. When a user set the value of thKernel to anything in the settings file, it would only be set to True. Changing the default value to an empty string changes its data type to str, allowing the setting to work as originally intended.
|
@daleazer Welcome aboard! Do I happen to know you, IRL? The change itself seems pretty reasonable. I am only surprised to see it, because I didn't think anyone actually used the (Oh, it looks like you have some linting and things to clean up.) |
@daleazer Can you add this header to the empty
Thanks! |
Thank you! I don't believe we know each other. I have added the license text to |
armi/physics/thermalHydraulics/tests/test_thermalHydraulicsPlugin.py
Outdated
Show resolved
Hide resolved
armi/physics/thermalHydraulics/tests/test_thermalHydraulicsPlugin.py
Outdated
Show resolved
Hide resolved
The |
Should be fixed now |
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.
Love it! Thanks!
What is the change?
The thKernel setting is meant to store the name of the primary thermal hydraulics solver for a run. The default value was False, causing the data type of thKernel to be bool. When a user set the value of thKernel to anything in the settings file, it would only be set to True. Changing the default value to an empty string changes its data type to str, allowing the setting to work as originally intended.
This change resolves issue #1854.
Why is the change being made?
This change is necessary to allow the thKernel setting to work as intended. Without this change, the thKernel can only be set to boolean values. With this change, thKernel can be set to any string.
Checklist
doc
folder.pyproject.toml
.