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

Throw extrapolation error also when interpolation is called with an AbstractVector #294

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

SouthEndMusic
Copy link
Member

Fixes #293.

@sathvikbhagavan
Copy link
Member

What's the MWE for the issue here?

@SouthEndMusic
Copy link
Member Author

SouthEndMusic commented Jul 13, 2024

Test simply with

using DataInterpolations

u = [1.0, 2.0]
t = [1.0, 2.0]
A = LinearInterpolation(u, t)
A([3.0])

Calling interpolation with a vector used to bypass _interpolate(A, t) with the extrapolation checks in it.

@ChrisRackauckas ChrisRackauckas merged commit f947b75 into SciML:master Jul 15, 2024
10 checks passed
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.

Issues with linear interpolation and extrapolation
3 participants