From 6d25dc26efb8f3af6d86b4e34f7863f60ed7b017 Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Mon, 26 Feb 2024 16:38:06 +0530 Subject: [PATCH] test: update compat, fix tests for MTKv9 --- Project.toml | 2 +- test/traits.jl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 15f7c74409..897fc00d0d 100644 --- a/Project.toml +++ b/Project.toml @@ -68,7 +68,7 @@ LinearAlgebra = "1.10" Logging = "1.10" Makie = "0.20" Markdown = "1.10" -ModelingToolkit = "8.75" +ModelingToolkit = "8.75, 9" PartialFunctions = "1.1" PrecompileTools = "1.2" Preferences = "1.3" diff --git a/test/traits.jl b/test/traits.jl index 4eceda6e45..1aa57187f9 100644 --- a/test/traits.jl +++ b/test/traits.jl @@ -12,7 +12,8 @@ using ModelingToolkit, OrdinaryDiffEq, DataFrames @variables t x(t)=1 D = Differential(t) eqs = [D(x) ~ -x] -@named sys = ODESystem(eqs) +@named sys = ODESystem(eqs, t) +sys = complete(sys) prob = ODEProblem(sys) sol = solve(prob, Tsit5(), tspan = (0.0, 1.0)) df = DataFrame(sol)