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

Issue 923 reformat electrolyte #927

Merged
merged 15 commits into from
Apr 6, 2020

Conversation

valentinsulzer
Copy link
Member

Description

  • Reformat electrolyte submodels
  • Some optimizations to speed up tests

Fixes #923

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

codecov bot commented Mar 28, 2020

Codecov Report

Merging #927 into develop will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #927      +/-   ##
===========================================
+ Coverage    98.05%   98.09%   +0.03%     
===========================================
  Files          226      221       -5     
  Lines        11164    11166       +2     
===========================================
+ Hits         10947    10953       +6     
+ Misses         217      213       -4     
Impacted Files Coverage Δ
pybamm/expression_tree/functions.py 100.00% <ø> (ø)
...m/models/full_battery_models/base_battery_model.py 100.00% <ø> (ø)
...l_battery_models/lead_acid/base_lead_acid_model.py 100.00% <ø> (ø)
...dels/full_battery_models/lead_acid/higher_order.py 98.98% <ø> (ø)
pybamm/parameters/print_parameters.py 96.96% <ø> (ø)
pybamm/expression_tree/broadcasts.py 100.00% <100.00%> (ø)
...ybamm/expression_tree/operations/unpack_symbols.py 100.00% <100.00%> (ø)
pybamm/expression_tree/symbol.py 97.44% <100.00%> (+<0.01%) ⬆️
pybamm/expression_tree/unary_operators.py 96.35% <100.00%> (-0.53%) ⬇️
pybamm/models/base_model.py 98.57% <100.00%> (+0.01%) ⬆️
... and 37 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 3934ad4...803a94e. Read the comment docs.

Copy link
Contributor

@Scottmar93 Scottmar93 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 @tinosulzer just one or two minor things. Definitely much cleaner and I like that you have changed the base_submodels methods in other submodels so that they accept the individual components instead of concatenations.

Copy link
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 good thanks @tinosulzer ! I'm happy once Scott is happy :)

@valentinsulzer valentinsulzer merged commit 4aa4e20 into develop Apr 6, 2020
@valentinsulzer valentinsulzer deleted the issue-923-reformat-electrolyte branch April 6, 2020 13:41
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.

Clean up electrolyte submodels
3 participants