Conversation
- Add TestElectrodeSOHHalfCell class with composite electrode tests - Create _get_params_and_options_composite_half_cell helper method - Test composite positive electrode using Chen2020_composite negative parameters - Add voltage and SOC initialization tests with proper tolerances (1e-5) - Set voltage cutoffs: lower=0.00001V, upper=2.5V - Remove unnecessary parameters (particle radii, exchange current densities, diffusion coefficients) - Include comprehensive error handling tests - Use proper pytest.approx() assertions instead of manual abs() comparisons All tests pass and validate composite electrode SOH functionality.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5179 +/- ##
========================================
Coverage 98.87% 98.88%
========================================
Files 320 320
Lines 26872 26949 +77
========================================
+ Hits 26571 26648 +77
Misses 301 301 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
rtimms
left a comment
There was a problem hiding this comment.
Thanks, implementation looks good but I wonder if it is better for the composite model to be a separate class for consistency with the full cell model? Or make the full-cell one into a single class that then calls the standard or composite version based on the options?
I have no preference, let me know what you prefer. The interesting thing about the half cell case is that the composite is just one additional equation that can be solved totally separately, so we can just add an additional model class for that if you want, right now I just do it in an |
|
Let's merge as-is for now so as not to overcomplicate things. Later we should unify the esoh code as it is a bit complicated. |
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Fixes # (issue)
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #)
Important checks:
Please confirm the following before marking the PR as ready for review:
nox -s pre-commitnox -s testsnox -s doctests