-
-
Notifications
You must be signed in to change notification settings - Fork 692
allow custom initial state #5215
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
base: develop
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5215 +/- ##
===========================================
- Coverage 98.79% 98.78% -0.01%
===========================================
Files 320 320
Lines 27092 27099 +7
===========================================
+ Hits 26766 26771 +5
- Misses 326 328 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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 really like putting it as a parameter because it's a different "type" of thing, it seems more natural to make it a method of a custom subclass of ParameterValues
That's fine with me, I left it as that because that's where we keep "chemistry", which is used for this and only this. Shall I remove the "chemistry" parameter as well? |
|
Yes let's remove chemistry as well
On Mon, Sep 29, 2025 at 4:56 PM, Alec Bills ***@***.******@***.***>> wrote:
[https://avatars.githubusercontent.com/u/48105066?s=20&v=4]aabills left a comment (pybamm-team/PyBaMM#5215)<#5215 (comment)>
I don't really like putting it as a parameter because it's a different "type" of thing, it seems more natural to make it a method of a custom subclass of ParameterValues
That's fine with me, I left it as that because that's where we keep "chemistry", which is used for this and only this. Shall I remove the "chemistry" parameter as well?
—
Reply to this email directly, view it on GitHub<#5215 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AE62MZM7TXIXAARYY7CMFOD3VGMFVAVCNFSM6AAAAACH2H556GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNBZGAZDIMBUGQ>.
You are receiving this because your review was requested.Message ID: ***@***.***>
|
|
Just pointing out that's a breaking change |
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Description
Allows for custom implementation of set_initial_state. Open to other ways of doing this.
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