Skip to content
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

Wycisk OCP Restructure - Add Initial Hysteresis State Parameter #4374

Merged
merged 8 commits into from
Jan 2, 2025

Conversation

mleot
Copy link
Contributor

@mleot mleot commented Aug 23, 2024

  • restructure wycisk ocp to accept an initial hysteresis state as an initial condition

Description

This adds a parameter to lithium ion parameters, which is used to set the initial hysteresis state in the Wycisk OCP module.

Fixes #4714

Type of change

Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.

  • New feature (non-breaking change which adds functionality)
  • Optimization (back-end change that speeds up the code)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking Change

Key checklist:

  • No style issues: $ pre-commit run (or $ nox -s pre-commit) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)
  • All tests pass: $ python run-tests.py --all (or $ nox -s tests)
  • The documentation builds: $ python run-tests.py --doctest (or $ nox -s doctests)

You can run integration tests, unit tests, and doctests together at once, using $ python run-tests.py --quick (or $ nox -s quick).

Further checks:

  • Code is commented, particularly in hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

@mleot mleot changed the title Wycisk OCP Restructure (#4351) Wycisk OCP Restructure Aug 23, 2024
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@kratman
Copy link
Contributor

kratman commented Nov 18, 2024

@mleot Are you still working on this PR?

@mleot
Copy link
Contributor Author

mleot commented Dec 18, 2024

@mleot Are you still working on this PR?

Hi @kratman Sorry for the long pause on this. I did get to a place where I was happy with the initial hysteresis state condition working, but some of the other changes suggested in the related issue seemed difficult to implement, namely the custom functional form of the hysteresis decay state. I think I will propose in the issue that the initial state parameter be a separate PR from the custom functional form of the hysteresis state.

Going to revisit this today and see if I can't bring it back up to date.

@mleot mleot changed the title Wycisk OCP Restructure Wycisk OCP Restructure - Add Initial Hysteresis State Parameter Dec 24, 2024
Copy link

codecov bot commented Dec 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.22%. Comparing base (a7253b8) to head (b309454).
Report is 15 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4374      +/-   ##
===========================================
- Coverage    99.22%   99.22%   -0.01%     
===========================================
  Files          303      303              
  Lines        23070    23101      +31     
===========================================
+ Hits         22891    22921      +30     
- Misses         179      180       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rtimms rtimms added the release blocker Issues that need to be addressed before the creation of a release label Jan 2, 2025
@kratman kratman merged commit f1bc9cd into pybamm-team:develop Jan 2, 2025
26 checks passed
@mleot mleot deleted the refactor-wycisk-hysteresis-ocp branch January 24, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release blocker Issues that need to be addressed before the creation of a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Initial Hysteresis State Parameter Wycisk Hysteresis
3 participants