Skip to content

fix shape for 2d interpolant#2180

Merged
valentinsulzer merged 4 commits intodevelopfrom
fix-2d-interpolant
Jul 20, 2022
Merged

fix shape for 2d interpolant#2180
valentinsulzer merged 4 commits intodevelopfrom
fix-2d-interpolant

Conversation

@valentinsulzer
Copy link
Copy Markdown
Member

Description

Fixes bug in 2D interpolant

@valentinsulzer valentinsulzer requested a review from rtimms July 19, 2022 15:39
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 19, 2022

Codecov Report

Merging #2180 (6985671) into develop (33a4037) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop    #2180   +/-   ##
========================================
  Coverage    99.35%   99.35%           
========================================
  Files          356      356           
  Lines        19357    19359    +2     
========================================
+ Hits         19233    19235    +2     
  Misses         124      124           
Impacted Files Coverage Δ
pybamm/expression_tree/interpolant.py 100.00% <100.00%> (ø)

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 33a4037...6985671. Read the comment docs.

Comment thread pybamm/expression_tree/interpolant.py Outdated
)
if x2 is not None and x2.shape[0] != y.shape[0]:
raise ValueError(
"len(x2) should equal y=shape[2], "
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the text in this error doesn’t match the if statement, otherwise all good, thanks!

@valentinsulzer valentinsulzer merged commit 41bf72b into develop Jul 20, 2022
@valentinsulzer valentinsulzer deleted the fix-2d-interpolant branch July 20, 2022 15:52
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