-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
[samples] Fix heat release in ic_engine.py #820
Conversation
4ecee45
to
cb19aae
Compare
This commit fixes a bug caused by the recently introduced `heat_release_rate` method of `SolutionArray` objects. The new method masked the pre-existing homonymous `extra` column, which contained the heat release rate of the reactor rather than heat release rate on a volumetric basis.
cb19aae
to
e8c1bf2
Compare
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 change looks fine as a fix for the specific issue at hand. The one thing I'm wondering is whether we should prevent the use of extra
columns that would be masked in this way. It seems like a bit of surprising behavior that may catch users off guard.
Sounds reasonable and should be relatively straight-forward to implement. Should I attach it to this PR or open another one? |
I'm thinking it should be fairly simple as well. If it is, feel free to add it to this PR. |
e6e91a8
to
1937895
Compare
@speth ... easy enough, no surprises. |
SolutionArray objects inherit properties from Solution objects, which will mask newly defined 'extra' columns. This commit prevents the creation of homonymous extra columns.
1b87bb6
to
bb5b077
Compare
bb5b077
to
871617e
Compare
Checklist
scons build
&scons test
) and unit tests address code coverageIf applicable, fill in the issue number this pull request is fixing
Fixes #819
Changes proposed in this pull request
This commit fixes a bug caused by the recently introduced
heat_release_rate
method ofSolutionArray
objects (PR #810): the new method masked the pre-existing homonymousextra
column.The behavior is now corrected