-
-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug π
When integrating it seems any interpolation type which was defined with cache_parameters = true, in some cases the computation fails with an attempt to evaluate the cached integral vector at index 0.
Expected behavior
Integration without error π
Minimal Reproducible Example π
using DataInterpolations
A = LinearInterpolation([1.0, 2.0], [1.0, 2.0]; cache_parameters=true, extrapolation=ExtrapolationType.Extension)
DataInterpolations.integral(A, 0, 1.5)Error & Stacktrace
oundsError: attempt to access 1-element Vector{Float64} at index [0]
Stacktrace:
[1] getindex
@ .\essentials.jl:13 [inlined]
[2] integral(A::LinearInterpolation{Vector{β¦}, Vector{β¦}, Vector{β¦}, Vector{β¦}, Float64, (1,)}, t1::Int64, t2::Float64)
@ DataInterpolations c:\Users\konin_bt\Repositories\SciML\DataInterpolations.jl\src\integrals.jl:55Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working