Skip to content

Commit 42e5799

Browse files
fix bad tests
This error found more bad tests than I would have expected!
1 parent 09ed407 commit 42e5799

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

test/downstream/linearize.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ matrices = linfun([1.0], Dict(p => 3.0), 1.0)
312312
@parameters p
313313
eqs = [0 ~ x * log(y) - p]
314314
@named sys = ODESystem(eqs, t; defaults = [p => 1.0])
315-
sys = complete(sys)
316315
@test_nowarn linearize(
317316
sys, [x], []; op = Dict(x => 1.0), allow_input_derivatives = true)
318317
end

test/initial_values.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ end
114114
@variables x(t)
115115
@parameters p
116116
@mtkbuild sys = ODESystem([D(x) ~ p], t; defaults = [x => t, p => 2t])
117-
prob = ODEProblem(structural_simplify(sys), [], (1.0, 2.0), [])
117+
prob = ODEProblem(sys, [], (1.0, 2.0), [])
118118
@test prob[x] == 1.0
119119
@test prob.ps[p] == 2.0

test/input_output_handling.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ disturbed_input = ins[1]
362362
dist_integ,
363363
ins)
364364

365-
augmented_sys = complete(augmented_sys)
366365
matrices, ssys = linearize(augmented_sys,
367366
[
368367
augmented_sys.u,

test/nonlinearsystem.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ end
251251
0 ~ z - cos(x),
252252
0 ~ x * y]
253253
@named ns = NonlinearSystem(eqs, [x, y, z], [])
254-
ns = complete(ns)
255254
vs = [unknowns(ns); parameters(ns)]
256255
ss_mtk = structural_simplify(ns)
257256
prob = NonlinearProblem(ss_mtk, vs .=> 1.0)

test/symbolic_events.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,11 @@ continuous_events = [[x ~ 0] => [vx ~ -vx]
353353
D(vx) ~ -9.8
354354
D(vy) ~ -0.01vy], t; continuous_events)
355355

356-
ball = structural_simplify(ball)
356+
ball_split = structural_simplify(ball)
357357
ball_nosplit = structural_simplify(ball; split = false)
358358

359359
tspan = (0.0, 5.0)
360-
prob = ODEProblem(ball, Pair[], tspan)
360+
prob = ODEProblem(ball_split, Pair[], tspan)
361361
prob_nosplit = ODEProblem(ball_nosplit, Pair[], tspan)
362362

363363
cb = get_callback(prob)

0 commit comments

Comments
 (0)