-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
I2304 multiple models to solver #2481
Conversation
…eam/PyBaMM into i2304-multiple-models-to-solver
…eam/PyBaMM into i2304-multiple-models-to-solver
Codecov ReportBase: 99.72% // Head: 99.72% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #2481 +/- ##
===========================================
- Coverage 99.72% 99.72% -0.01%
===========================================
Files 270 270
Lines 19487 19502 +15
===========================================
+ Hits 19434 19448 +14
- Misses 53 54 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Thanks, looks good and sorry for slow review.
In longer-term future, it would be better if the model itself (rather than the solver) stored the setting up functions, since it seems a bit weird to restrict one model instance per solver. But I'm happy to merge this for now as it fixes the existing bug
Thanks @tinosulzer! I'll make those fixes. FYI, I'm quite happy with one-model-one-solver approach. There is always going to be significant setup for any model-solver pairing, and it makes sense to have setup stuff done within an |
Ok fair enough, if it isn't broken don't fix it I guess Updates look good so happy to merge once tests pass (merging develop should do it) |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Description
IDAKLU solver cannot setup more than one model. We have decided to restrict the
BaseSolver
to only setup a single model at at time. If multiple models are passed in aRuntimeError
is raisedFixes #2304
Type of change
Key checklist:
$ flake8
$ python run-tests.py --unit
$ cd docs
and then$ make clean; make html
You can run all three at once, using
$ python run-tests.py --quick
.Further checks: