Skip to content

Commit c6359a2

Browse files
refactor: update to ModelingToolkit@10
1 parent ceb0251 commit c6359a2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/src/libs/datadrivensparse/example_04.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ using Test #src
2929
end
3030
end
3131

32-
@mtkbuild sys = Autoregulation()
32+
@mtkcompile sys = Autoregulation()
3333
tspan = (0.0, 5.0)
34-
de_problem = ODEProblem{true, SciMLBase.NoSpecialize}(sys, [], tspan, [])
34+
de_problem = ODEProblem{true, SciMLBase.NoSpecialize}(sys, [], tspan)
3535
de_solution = solve(de_problem, Tsit5(), saveat = 0.005);
3636
#md plot(de_solution)
3737

src/DataDrivenDiffEq.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using Parameters
1313
using Setfield
1414

1515
@reexport using ModelingToolkit
16-
using ModelingToolkit: AbstractSystem, AbstractTimeDependentSystem
16+
using ModelingToolkit: AbstractSystem
1717
using SciMLStructures: SciMLStructures as SS
1818
using SymbolicUtils: operation, arguments, iscall, issym
1919
using Symbolics
@@ -67,7 +67,7 @@ const __EMPTY_VECTOR = Vector(undef, 0)
6767

6868
# Basis with an indicator for implicit use
6969
abstract type AbstractDataDrivenFunction{Bool, Bool} end
70-
abstract type AbstractBasis <: AbstractTimeDependentSystem end
70+
abstract type AbstractBasis <: AbstractSystem end
7171

7272
# Collect the DataInterpolations Methods into an Interpolation Type
7373
abstract type AbstractInterpolationMethod end

test/problem/problem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ end
183183
end
184184
end
185185

186-
@mtkbuild sys = Autoregulation()
186+
@mtkcompile sys = Autoregulation()
187187
tspan = (0.0, 5.0)
188-
de_problem = ODEProblem{true, SciMLBase.NoSpecialize}(sys, [], tspan, [])
188+
de_problem = ODEProblem{true, SciMLBase.NoSpecialize}(sys, [], tspan)
189189
de_solution = solve(de_problem, Tsit5(), saveat = 0.005)
190190
prob = DataDrivenProblem(de_solution)
191191
@test is_valid(prob)

0 commit comments

Comments
 (0)