-
-
Notifications
You must be signed in to change notification settings - Fork 553
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 1011 model new copy #1090
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1090 +/- ##
===========================================
- Coverage 97.78% 97.76% -0.02%
===========================================
Files 242 243 +1
Lines 12658 12664 +6
===========================================
+ Hits 12377 12381 +4
- Misses 281 283 +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 good, thanks!
pybamm.Event( | ||
"Current cut-off (positive) [A] [experiment]", | ||
variables["Current [A]"] | ||
- abs(pybamm.InputParameter("Current cut-off [A]")), |
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.
Does the current cut-off need to be added to the parameter values or does it get a default value if unspecified?
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.
It's an input parameter so needs to be provided by the user when solving. But the experiment class does this automatically.
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 @tinosulzer !
Description
Reformat
model.new_copy()
to maintain submodels. Also removes some methods fromSimulation
to keep things simpler.Fixes #1011
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: