DiffEqFlux.jl
DiffEqFlux.jl copied to clipboard
Error with `collocate_data` with `DataInterpolations`
Describe the bug 🐞
Collocation with interpolators throws an error since DataInterpolations
is not imported.
Minimal Reproducible Example 👇
x = randn(1001) |> cumsum
t = collect(0.0:1000)
t2 = collect(0.0:10:1000)
collocate_data(x, t, t2, CubicSpline)
Error & Stacktrace ⚠️
ERROR: UndefVarError: `DataInterpolations` not defined
Stacktrace:
[1] collocate_data(::Matrix{Float64}, ::Vector{Float64}, ::Vector{Float64}, ::Type)
@ DiffEqFlux C:\Users\Cornejo\.julia\packages\DiffEqFlux\TglmB\src\collocation.jl:117
[2] collocate_data(::Vector{Float64}, ::Vector{Float64}, ::Vector{Float64}, ::Type)
@ DiffEqFlux C:\Users\Cornejo\.julia\packages\DiffEqFlux\TglmB\src\collocation.jl:106
[3] top-level scope
@ REPL[73]:1