-
-
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
Fix bug with electrochemical-legacy #1256
Fix bug with electrochemical-legacy #1256
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1256 +/- ##
==========================================
+ Coverage 65.50% 65.54% +0.04%
==========================================
Files 329 329
Lines 46666 46668 +2
Branches 19855 19855
==========================================
+ Hits 30568 30590 +22
+ Misses 13538 13516 -22
- Partials 2560 2562 +2
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
I think this change makes sense, but I'm a little concerned about what it says about how we're testing this reaction type to verify that the "legacy" and new implementations corresponding to CTI and YAML input are actually the same. If the test suite didn't catch this error, I think we need to take another look at those tests. |
Thanks, @dschmider-HSOG for tracking that bug down! This was a clear oversight that happened to fall through the cracks of the test suite. @speth Regarding unit test coverage, both To facilitate a resolution here, I pushed an update to include testing of CTI input to this PR. |
Thanks for adding this test, @ischoegl. The thing that I'm still surprised to see is that if you revert the change that fixes the reaction type, this new test still passes. One difference that I did notice between @dschmider-HSOG's example posted on the Users' Group and surface_reaction("Li+[electrolyte] + V[NCA] + electron <=> Li[NCA]",
[2.62895E+10, 0.0, (61.0098120252686, 'kJ/mol')],
rate_coeff_type = "exchangecurrentdensity",
beta = 0.5,
id="NCA_reaction") I'm thinking we don't actually have a test that covers this case for the "legacy" reaction framework / CTI input, though the feature is used in |
Thanks, @speth. When refactoring, I relied on existing tests. From the implementation side, the If there wasn't a test covering this behavior from the get-go this is a different issue. It's outside of my wheel house and should probably be added by a separate issue? Tagging @decaluwe here ... |
@speth ... I opened #1259 which should resolve a larger issue. I don't think this should be added to this PR as this goes well beyond the scope of what @dschmider-HSOG signed up for. |
Based on #1263, I'd suggest to merge here (fwiw, the new |
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.
Thanks for identifying this fix and submitting the PR, @dschmider-HSOG.
Changes proposed in this pull request
Checklist
scons build
&scons test
) and unit tests address code coverage