Skip to content

Commit 22fe521

Browse files
fix t imports
1 parent 60cdf22 commit 22fe521

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

test/downstream/integrator_indexing.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ integrator[noisy_population_model.s2] = 10.0
118118
integrator[:s1] = 1.0
119119
@test integrator[s1] == integrator[noisy_population_model.s1] == integrator[:s1] == 1.0
120120

121-
@parameters t σ ρ β
121+
@parameters σ ρ β
122122
@variables x(t) y(t) z(t)
123123
D = Differential(t)
124124

@@ -327,7 +327,6 @@ plot(sol,idxs=(t,α))
327327
=#
328328

329329
using LinearAlgebra
330-
@variables t
331330
sts = @variables x(t)[1:3]=[1, 2, 3.0] y(t)=1.0
332331
ps = @parameters p[1:3] = [1, 2, 3]
333332
D = Differential(t)

test/downstream/problem_interface.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ set_tuple!(sprob, [10.0, 10.0])
179179
@test get_tuple(sprob) == (10.0, 10.0)
180180

181181
using LinearAlgebra
182-
@variables t
183182
sts = @variables x(t)[1:3]=[1, 2, 3.0] y(t)=1.0
184183
ps = @parameters p[1:3] = [1, 2, 3]
185184
D = Differential(t)

test/downstream/remake_autodiff.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using OrdinaryDiffEq, ModelingToolkit, Zygote, SciMLSensitivity
2+
using ModelingToolkit: t_nounits as t, D_nounits as D
23

3-
@variables t x(t) o(t)
4+
@variables x(t) o(t)
45
D = Differential(t)
56
function lotka_volterra(; name = name)
67
unknowns = @variables x(t)=1.0 y(t)=1.0 o(t)

test/downstream/symbol_indexing.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ plot(sol,idxs=(t,α))
215215
=#
216216

217217
using LinearAlgebra
218-
@variables t
219218
sts = @variables x(t)[1:3]=[1, 2, 3.0] y(t)=1.0
220219
ps = @parameters p[1:3] = [1, 2, 3]
221220
D = Differential(t)
@@ -339,7 +338,7 @@ for (sym, oldval, newval, check_inference) in [
339338
end
340339

341340
# accessing parameters
342-
@variables t x(t)
341+
@variables x(t)
343342
@parameters tau
344343
D = Differential(t)
345344

0 commit comments

Comments
 (0)