-
-
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
Issue 743 input node #752
Issue 743 input node #752
Conversation
Codecov Report
@@ Coverage Diff @@
## master #752 +/- ##
==========================================
+ Coverage 98.35% 98.38% +0.03%
==========================================
Files 175 176 +1
Lines 9609 9678 +69
==========================================
+ Hits 9451 9522 +71
+ Misses 158 156 -2
Continue to review 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.
looks great thanks @tinosulzer !
pybamm/simulation.py
Outdated
@@ -185,7 +187,8 @@ def solve(self, t_eval=None, solver=None, check_model=True): | |||
if solver is None: | |||
solver = self.solver | |||
|
|||
self._solution = solver.solve(self.built_model, t_eval) | |||
self.t_eval = t_eval | |||
self._solution = solver.solve(self.built_model, t_eval, inputs=inputs) | |||
|
|||
def step(self, dt, solver=None, external_variables=None, save=True): |
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.
do we want to be able to pass inputs to step as well?
Description
Add InputParameter node that will be useful for parameter estimation
Fixes #743
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.
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: