Skip to content

Commit 5c029b7

Browse files
test: remove MTK as test dependency
1 parent dfdd9ad commit 5c029b7

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ LinearAlgebra = "1.10"
7171
Logging = "1.10"
7272
Makie = "0.20, 0.21"
7373
Markdown = "1.10"
74-
ModelingToolkit = "8.75, 9"
7574
PartialFunctions = "1.1"
7675
PrecompileTools = "1.2"
7776
Preferences = "1.3"
@@ -100,7 +99,6 @@ ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
10099
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
101100
DelayDiffEq = "bcd4f6db-9728-5f36-b5f7-82caef46ccdb"
102101
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
103-
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
104102
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
105103
PartialFunctions = "570af359-4316-4cb7-8c74-252c00c2016b"
106104
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
@@ -118,4 +116,4 @@ UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"
118116
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
119117

120118
[targets]
121-
test = ["Pkg", "Plots", "UnicodePlots", "PyCall", "PythonCall", "SafeTestsets", "Serialization", "Test", "StableRNGs", "StaticArrays", "StochasticDiffEq", "Aqua", "Zygote", "PartialFunctions", "DataFrames", "ModelingToolkit", "OrdinaryDiffEq", "ForwardDiff"]
119+
test = ["Pkg", "Plots", "UnicodePlots", "PyCall", "PythonCall", "SafeTestsets", "Serialization", "Test", "StableRNGs", "StaticArrays", "StochasticDiffEq", "Aqua", "Zygote", "PartialFunctions", "DataFrames", "OrdinaryDiffEq", "ForwardDiff"]

test/traits.jl

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using SciMLBase, Test
2-
using ModelingToolkit, OrdinaryDiffEq, DataFrames
3-
using ModelingToolkit: t_nounits as t, D_nounits as D
2+
using OrdinaryDiffEq, DataFrames, SymbolicIndexingInterface
43

54
@test SciMLBase.Tables.isrowtable(ODESolution)
65
@test SciMLBase.Tables.isrowtable(RODESolution)
@@ -10,13 +9,13 @@ using ModelingToolkit: t_nounits as t, D_nounits as D
109
@test !SciMLBase.Tables.isrowtable(SciMLBase.QuadratureSolution)
1110
@test !SciMLBase.Tables.isrowtable(SciMLBase.OptimizationSolution)
1211

13-
@variables x(t) = 1
14-
eqs = [D(x) ~ -x]
15-
@named sys = ODESystem(eqs, t)
16-
sys = complete(sys)
17-
prob = ODEProblem(sys)
18-
sol = solve(prob, Tsit5(), tspan = (0.0, 1.0))
12+
function rhs(u, p, t)
13+
return -u
14+
end
15+
sys = SymbolCache([:x], Symbol[], :t)
16+
prob = ODEProblem(ODEFunction(rhs; sys), [1.0], (0.0, 1.0))
17+
sol = solve(prob, Tsit5())
1918
df = DataFrame(sol)
2019
@test size(df) == (length(sol.u), 2)
2120
@test df.timestamp == sol.t
22-
@test df.x == sol[x]
21+
@test df.x == sol[:x]

0 commit comments

Comments
 (0)