Skip to content

Commit 7d11edb

Browse files
committed
Formatting again.
1 parent 4068cd0 commit 7d11edb

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/systems/systemstructure.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function TearingState(sys; quick_cancel = false, check = true)
267267
_var, _ = var_from_nested_derivative(var)
268268
any(isequal(_var), ivs) && continue
269269
if isparameter(_var) ||
270-
(istree(_var) && isparameter(operation(_var)) || isconstant(_var))
270+
(istree(_var) && isparameter(operation(_var)) || isconstant(_var))
271271
continue
272272
end
273273
varidx = addvar!(var)

test/constants.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ MT = ModelingToolkit
99
D = Differential(t)
1010
eqs = [D(x) ~ a]
1111
@named sys = ODESystem(eqs)
12-
prob = ODEProblem(sys, [0, ], [0.0, 1.0], [])
12+
prob = ODEProblem(sys, [0], [0.0, 1.0], [])
1313
sol = solve(prob, Tsit5())
1414

1515
# Test structural_simplify substitutions & observed values
@@ -19,16 +19,15 @@ eqs = [D(x) ~ 1,
1919
simp = structural_simplify(sys);
2020
@test isequal(simp.substitutions.subs[1], eqs[2])
2121
@test isequal(equations(simp)[1], eqs[1])
22-
prob = ODEProblem(simp, [0, ], [0.0, 1.0], [])
22+
prob = ODEProblem(simp, [0], [0.0, 1.0], [])
2323
sol = solve(prob, Tsit5())
2424
@test sol[w][1] == 1
2525

2626
#Constant with units
27-
@constants β = 1 [unit = u"m/s"]
27+
@constants β=1 [unit = u"m/s"]
2828
MT.get_unit(β)
2929
@test MT.isconstant(β)
3030
@variables t [unit = u"s"] x(t) [unit = u"m"]
3131
D = Differential(t)
3232
eqs = [D(x) ~ β]
33-
sys = ODESystem(eqs,name=:sys)
34-
33+
sys = ODESystem(eqs, name = :sys)

0 commit comments

Comments
 (0)