Skip to content

#652 cache evaluation array#653

Merged
valentinsulzer merged 1 commit intomasterfrom
issue-652-state-vector-evaluation-array
Oct 9, 2019
Merged

#652 cache evaluation array#653
valentinsulzer merged 1 commit intomasterfrom
issue-652-state-vector-evaluation-array

Conversation

@valentinsulzer
Copy link
Copy Markdown
Member

Description

Reuse evaluation array when making a copy of a state vector
Fixes #653

Type of change

  • New feature (non-breaking change which adds functionality)

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
  • Any dependent changes have been merged and published in downstream modules

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 9, 2019

Codecov Report

Merging #653 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #653      +/-   ##
==========================================
+ Coverage   98.49%   98.49%   +<.01%     
==========================================
  Files         167      167              
  Lines        8177     8179       +2     
==========================================
+ Hits         8054     8056       +2     
  Misses        123      123
Impacted Files Coverage Δ
pybamm/expression_tree/state_vector.py 100% <100%> (ø) ⬆️

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 41cb9dc...baa1f2e. Read the comment docs.

Copy link
Copy Markdown
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 to me thanks @tinosulzer

@valentinsulzer valentinsulzer merged commit 9de186a into master Oct 9, 2019
@valentinsulzer valentinsulzer deleted the issue-652-state-vector-evaluation-array branch October 9, 2019 15:57
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