Fixes for upcoming PyBaMM v24.5#313
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #313 +/- ##
===========================================
+ Coverage 97.79% 98.07% +0.27%
===========================================
Files 47 44 -3
Lines 3039 2697 -342
===========================================
- Hits 2972 2645 -327
+ Misses 67 52 -15 ☔ View full report in Codecov by Sentry. |
Changes to pybamm v24.5 have resulted in solver.solve() to return values for incorrect inputs values when not requesting sensitivities. This removes the test that assert output == np.inf in this case.
|
Note: PyBaMM v24.5rc1 is out (and was yanked some time later), and v24.5rc2 is out with no extra changes compared to v24.5rc1. PyBaMM v24.5 should hit one week from now – just offering a heads-up. P.S. I would like to suggest modifying the workflow for nightly PyBaMM to try running against pre-releases if they are available ( |
|
That sounds like a great plan @agriyakhetarpal, please open a issue & PR when you get a chance! |
NicolaCourtier
left a comment
There was a problem hiding this comment.
Looks good, thanks @BradyPlanden !
…-pybammdevelop # Conflicts: # tests/unit/test_cost.py
Description
Fixes to
pybop.experimentandpybop.base_modelfor pybamm@develop ahead of pybamm v24.5.This currently targets my PyBaMM fork: https://github.com/BradyPlanden/PyBaMM/tree/fix-electrode-diffusion-rename as I've updated the electrode diffusivity -> particle diffusivity variable rename in PyBaMM to be non-breaking, but haven't opened a PR yet.Issue reference
Fixes #312
Review
Before you mark your PR as ready for review, please ensure that you've considered the following:
Type of change
Key checklist:
$ 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)$ nox -s tests$ nox -s doctestYou can run integration tests, unit tests, and doctests together at once, using
$ nox -s quick.Further checks:
Thank you for contributing to our project! Your efforts help us to deliver great software.