JuliaMath / Interpolations.jl

Fast, continuous interpolation of discrete datasets in Julia

Home Page:http://juliamath.github.io/Interpolations.jl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`BoundsError` with Julia 1.10.0-beta1

cafaxo opened this issue · comments

With Julia 1.10.0-beta1 I am getting

julia> interpolate([1,2,3], BSpline(Linear()))
3-element interpolate(::Vector{Float64}, BSpline(Linear())) with element type Float64:
Error showing value of type Interpolations.BSplineInterpolation{Float64, 1, Vector{Float64}, BSpline{Linear{Throw{OnGrid}}}, Tuple{Base.OneTo{Int64}}}:
ERROR: BoundsError: attempt to access Tuple{} at index [1]
Stacktrace:
  [1] getindex(t::Tuple, i::Int64)
    @ Base ./tuple.jl:31
  [2] _checklubounds(tf::Bool, ls::Tuple{}, us::Tuple{}, xs::Tuple{Int64})
    @ Interpolations ~/.julia/packages/Interpolations/nDwIa/src/Interpolations.jl:420
  [3] _checklubounds(tf::Bool, ls::Tuple{Int64}, us::Tuple{Int64}, xs::Tuple{Int64, Int64})
    @ Interpolations ~/.julia/packages/Interpolations/nDwIa/src/Interpolations.jl:420
[...]

This does not happen with Julia 1.9.

Thanks. I will investigate.

Just reporting that I'm seeing this on 1.10 beta2 still.