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

Issue 2219 initial soc from experiment #2851

Conversation

DrSOKane
Copy link
Contributor

@DrSOKane DrSOKane commented Apr 3, 2023

Description

Added new rpt-experiment notebook to demonstrate how to set up degradation experiments with reference performance tests (RPTs).

Fixes #2219

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)

Key checklist:

  • No style issues: $ pre-commit run (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
  • The documentation builds: $ python run-tests.py --doctest

You can run unit and doctests together at once, using $ python run-tests.py --quick.

Further checks:

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

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@codecov
Copy link

codecov bot commented Apr 3, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (3c48029) 99.56% compared to head (2e8e8ec) 99.56%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2851   +/-   ##
========================================
  Coverage    99.56%   99.56%           
========================================
  Files          253      253           
  Lines        19559    19559           
========================================
  Hits         19474    19474           
  Misses          85       85           

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

@rtimms
Copy link
Contributor

rtimms commented May 2, 2023

@DrSOKane @ganmad do you know what happened to the version of this notebook with the additional custom plots (can’t remember exactly what they were)? that would be a nice addition

@DrSOKane
Copy link
Contributor Author

DrSOKane commented May 2, 2023

@DrSOKane @ganmad do you know what happened to the version of this notebook with the additional custom plots (can’t remember exactly what they were)? that would be a nice addition

Do you mean this one by Ganesh? https://github.com/ganmad/PyBaMM-Local/blob/issue-2219-initial-SoC-from-experiment/examples/notebooks/rpt-experiment.ipynb

@rtimms
Copy link
Contributor

rtimms commented May 2, 2023

yes, thanks! would be good to add those with some explanation

@ganmad
Copy link
Contributor

ganmad commented May 2, 2023 via email

@@ -0,0 +1,424 @@
{
Copy link
Sponsor Member

@brosaplanella brosaplanella Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor style comments:

  • Use bullet points (* in markdown)
  • Format the variables (e.g. cccv_experiment) as inline code, using ` before and after the variable.

Reply via ReviewNB

Copy link
Sponsor Member

@brosaplanella brosaplanella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Simon! Looks good to me, just a small style comment. It would be good to get @rtimms review before merging.

@rtimms
Copy link
Contributor

rtimms commented Sep 22, 2023

Thanks, @DrSOKane looks good! I think the notebook text could be updated to give a better explanation of what is being done and why, but otherwise good to go!

@brosaplanella brosaplanella merged commit 4265569 into pybamm-team:develop Oct 3, 2023
33 of 34 checks passed
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.

Calculate initial_soc from model states
4 participants