-
-
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 865 interface #866
Issue 865 interface #866
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #866 +/- ##
===========================================
+ Coverage 97.66% 97.70% +0.03%
===========================================
Files 207 201 -6
Lines 10510 10415 -95
===========================================
- Hits 10265 10176 -89
+ Misses 245 239 -6
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.
thanks @tinosulzer the structure for the kinetics is now much clearer!
the only comment I have is that having the if statements for things like _get_exchange_current_density
could get long if people start adding lots more reactions. I think it is ok for now though. maybe a solution is to have a reactions class that gets instatiated inside the init of base_interface
so that the definitions of _get_exchange_current_density
are shifted to separate files. I know we had separate files for lithium-ion main, lead-acid main etc. before but they had definitions of classes at the end with double inheritence, which I found confusing.
Anyway I think what you've done looks great and clears things up a lot, and we can revisit the reactions if and when people start to implement a lot more.
|
||
def _get_exchange_current_density(self, variables): | ||
""" | ||
A private function to obtain the exchange current density for a lead acid |
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.
both lead acid and lithium ion?
Thanks, yeah I didn't know how to keep it with separate classes but not do double inheritance, can rethink again if it becomes too long |
Description
Reformatted interface submodels.
Fixes #865
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: