DiffEqFlux.jl icon indicating copy to clipboard operation
DiffEqFlux.jl copied to clipboard

Error with `collocate_data` with `DataInterpolations`

Open martincornejo opened this issue 6 months ago • 0 comments

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

martincornejo avatar Aug 27 '24 13:08 martincornejo