Skip to content
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

Merged

Conversation

molel-gt
Copy link
Contributor

@molel-gt molel-gt commented Jul 13, 2021

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.

  • 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

Comment on lines 373 to 374
"Ratio of electrolyte diffusion to discharge time": param.C_e,
"Ratio of solid diffusion to discharge time": param.C_p,
Copy link
Member

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

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

Copy link
Member

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

@valentinsulzer
Copy link
Member

Tests won't run until conflicts are resolved

@codecov
Copy link

codecov bot commented Jul 14, 2021

Codecov Report

Merging #1546 (c2baee9) into develop (bae3720) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1546   +/-   ##
========================================
  Coverage    98.28%   98.28%           
========================================
  Files          310      310           
  Lines        17401    17401           
========================================
  Hits         17102    17102           
  Misses         299      299           
Impacted Files Coverage Δ
..._battery_models/lithium_ion/basic_dfn_half_cell.py 99.36% <ø> (ø)

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 bae3720...c2baee9. Read the comment docs.

Copy link
Member

@valentinsulzer valentinsulzer left a 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?

@molel-gt
Copy link
Contributor Author

Looks good, is this ready to merge once conflicts are resolved?

Yes.

@valentinsulzer valentinsulzer merged commit 90a4cf6 into pybamm-team:develop Jul 15, 2021
@valentinsulzer
Copy link
Member

@all-contributors add @molel-gt for code, ideas

@allcontributors
Copy link
Contributor

@tinosulzer

I've put up a pull request to add @molel-gt! 🎉

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.

2 participants