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: get element type from interp.u instead of interp #254

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

sathvikbhagavan
Copy link
Member

fixes: #253

In DataInterpolations@v4, eltype(interp) returned eltype(interp.u) as it subtyped AbstractVector of type which is the eltype of interp.u

In DataInterpolations@v5, eltype(interp) returns Any as the subtyping to AbstractVector is removed, hence the issue. Fixing it to use eltype(interp.u).

Added a few tests to ensure the returned vectors have the same type as interp.u.

@sathvikbhagavan
Copy link
Member Author

@ChrisRackauckas
Copy link
Member

Depwarns are turned to errors. I'll handle this today.

@ChrisRackauckas ChrisRackauckas merged commit 364fd60 into SciML:master Jun 4, 2024
18 of 22 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.

Type instability: Interpolations in v5 return Vector{Any} with all-Vector{Float64} inputs
2 participants