Skip to content

Conversation

@aabills
Copy link
Contributor

@aabills aabills commented Sep 29, 2025

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:

  • No style issues: nox -s pre-commit
  • All tests pass: nox -s tests
  • The documentation builds: nox -s doctests
  • Code is commented for hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

@aabills aabills requested a review from a team as a code owner September 29, 2025 19:04
@codecov
Copy link

codecov bot commented Sep 29, 2025

Codecov Report

❌ Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.78%. Comparing base (f1ceff2) to head (9cf223d).

Files with missing lines Patch % Lines
src/pybamm/parameters/parameter_values.py 81.81% 2 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@valentinsulzer valentinsulzer left a 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

@aabills
Copy link
Contributor Author

aabills commented Sep 29, 2025

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?

@valentinsulzer
Copy link
Member

valentinsulzer commented Sep 29, 2025 via email

@aabills
Copy link
Contributor Author

aabills commented Sep 29, 2025

Just pointing out that's a breaking change

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants