With the latest version of this package, the various interpolations like CubicSpline returns Vector{Any} even when all inputs are Vector{Float64}. This doesn't happen in v4 of this package.
Minimal Reproducible Example 👇
This is what I get in a temp environment using add DataInterpolations@4:
julia> using DataInterpolations
julia> t = Float64[0.1, 0.2, 0.3, 0.4, 0.5]; CubicSpline(t, t)(t)
5-element Vector{Float64}:
0.1
0.2
0.3
0.4
0.5
Note that the output is a Vector{Float64}. I get the same results with all the interpolations (except BSplineInterpolation which I haven't tried).
Error & Stacktrace ⚠️
Now in a temp environment using add DataInterpolations@5:
julia> using DataInterpolations
julia> t = Float64[0.1, 0.2, 0.3, 0.4, 0.5]; CubicSpline(t, t)(t)
5-element Vector{Any}:
0.1
0.2
0.3
0.4
0.5
Note that the output is a Vector{Any}. I get the same results with all the interpolations (except BSplineInterpolation which I haven't tried).
Not Working Environment (please complete the following information):
Output of using Pkg; Pkg.status()
Status `/private/var/folders/bh/rg4bdsl965l0572z3vtmwkr40000gn/T/jl_HUAoT0/Project.toml`
[82cc6244] DataInterpolations v5.0.0
Output of using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
Julia Version 1.10.3
Commit 0b4590a5507 (2024-04-30 10:59 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: macOS (arm64-apple-darwin22.4.0)
CPU: 12 × Apple M2 Max
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
Working Environment (please complete the following information):
Output of using Pkg; Pkg.status()
Status `/private/var/folders/bh/rg4bdsl965l0572z3vtmwkr40000gn/T/jl_yBH9Ow/Project.toml`
⌃ [82cc6244] DataInterpolations v4.8.0
Info Packages marked with ⌃ have new versions available and may be upgradable.
Output of using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
Describe the example
With the latest version of this package, the various interpolations like
CubicSpline
returnsVector{Any}
even when all inputs areVector{Float64}
. This doesn't happen in v4 of this package.Minimal Reproducible Example 👇
This is what I get in a temp environment using
add DataInterpolations@4
:Note that the output is a
Vector{Float64}
. I get the same results with all the interpolations (exceptBSplineInterpolation
which I haven't tried).Error & Stacktrace ⚠️
Now in a temp environment using
add DataInterpolations@5
:Note that the output is a
Vector{Any}
. I get the same results with all the interpolations (exceptBSplineInterpolation
which I haven't tried).Not Working Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
Working Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()