Skip to content

Issue 743 input node#752

Merged
valentinsulzer merged 19 commits intomasterfrom
issue-743-input-node
Dec 5, 2019
Merged

Issue 743 input node#752
valentinsulzer merged 19 commits intomasterfrom
issue-743-input-node

Conversation

@valentinsulzer
Copy link
Copy Markdown
Member

@valentinsulzer valentinsulzer commented Dec 1, 2019

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.

  • 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: $ flake8
  • All tests pass: $ python run-tests.py --unit
  • The documentation builds: $ cd docs and then $ make clean; make html

You can run all three 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

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 4, 2019

Codecov Report

Merging #752 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
...m/models/full_battery_models/base_battery_model.py 99.65% <ø> (ø) ⬆️
pybamm/solvers/scipy_solver.py 100% <ø> (ø) ⬆️
pybamm/logger.py 100% <ø> (ø) ⬆️
pybamm/models/base_model.py 98.57% <ø> (ø) ⬆️
pybamm/models/submodels/porosity/base_porosity.py 100% <ø> (ø) ⬆️
pybamm/parameters/parameter_values.py 100% <100%> (ø) ⬆️
pybamm/solvers/dae_solver.py 100% <100%> (+0.36%) ⬆️
pybamm/expression_tree/input_parameter.py 100% <100%> (ø)
pybamm/solvers/casadi_solver.py 98.85% <100%> (+0.05%) ⬆️
pybamm/expression_tree/unary_operators.py 96.18% <100%> (ø) ⬆️
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d8d24c6...f9c8a26. Read the comment docs.

Copy link
Copy Markdown
Contributor

@rtimms rtimms left a 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 !

Comment thread pybamm/simulation.py Outdated
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):
Copy link
Copy Markdown
Contributor

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?

@valentinsulzer valentinsulzer merged commit b5f51da into master Dec 5, 2019
@valentinsulzer valentinsulzer deleted the issue-743-input-node branch December 5, 2019 20:21
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.

Input symbol

2 participants