-
-
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
Expose additional variables #1546
Expose additional variables #1546
Conversation
"Ratio of electrolyte diffusion to discharge time": param.C_e, | ||
"Ratio of solid diffusion to discharge time": param.C_p, |
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.
you can print parameters to a file like this
PyBaMM/tests/unit/test_parameters/test_lithium_ion_parameters.py
Lines 12 to 15 in d62c862
parameters = pybamm.LithiumIonParameters() | |
parameter_values = pybamm.lithium_ion.BaseModel().default_parameter_values | |
output_file = "lithium_ion_parameters.txt" | |
parameter_values.print_parameters(parameters, output_file) |
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.
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.
So you don't need to add these to the list of variables
Tests won't run until conflicts are resolved |
Codecov Report
@@ Coverage Diff @@
## develop #1546 +/- ##
========================================
Coverage 98.28% 98.28%
========================================
Files 310 310
Lines 17401 17401
========================================
Hits 17102 17102
Misses 299 299
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, is this ready to merge once conflicts are resolved?
Yes. |
…t/PyBaMM into issue-1527-expose-more-variables
@all-contributors add @molel-gt for code, ideas |
@tinosulzer I've put up a pull request to add @molel-gt! 🎉 |
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
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: