SciML/DiffEqFlux.jl

Error with `collocate_data` with `DataInterpolations`

Closed this issue ยท 1 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

Fixed in #936, should be released in about a week. Thanks for the report.