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

fix shape for 2d interpolant #2180

Merged
merged 4 commits into from Jul 20, 2022
Merged

fix shape for 2d interpolant #2180

merged 4 commits into from Jul 20, 2022

Conversation

valentinsulzer
Copy link
Member

Description

Fixes bug in 2D interpolant

@codecov
Copy link

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.

)
if x2 is not None and x2.shape[0] != y.shape[0]:
raise ValueError(
"len(x2) should equal y=shape[2], "
Copy link
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.

None yet

2 participants