Skip to content

Commit e29a09f

Browse files
committed
Format
1 parent 978d022 commit e29a09f

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

src/systems/validation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function _validate(terms::Vector, labels::Vector{String}; info::String = "")
170170
valid
171171
end
172172

173-
function _validate(conn::Connection; info::String="")
173+
function _validate(conn::Connection; info::String = "")
174174
valid = true
175175
syss = get_systems(conn)
176176
sys = first(syss)

test/units.jl

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,27 +63,21 @@ ODESystem(eqs, name = :sys, checks = false)
6363
checks = MT.CheckUnits)
6464

6565
# connection validation
66-
@connector function Pin(;name)
67-
sts = @variables(
68-
v(t)=1.0, [unit=u"V"],
69-
i(t)=1.0, [unit=u"A", connect = Flow]
70-
)
71-
ODESystem(Equation[], t, sts, []; name=name)
66+
@connector function Pin(; name)
67+
sts = @variables(v(t)=1.0, [unit = u"V"],
68+
i(t)=1.0, [unit = u"A", connect = Flow])
69+
ODESystem(Equation[], t, sts, []; name = name)
7270
end
73-
@connector function OtherPin(;name)
74-
sts = @variables(
75-
v(t)=1.0, [unit=u"mV"],
76-
i(t)=1.0, [unit=u"mA", connect = Flow]
77-
)
78-
ODESystem(Equation[], t, sts, []; name=name)
71+
@connector function OtherPin(; name)
72+
sts = @variables(v(t)=1.0, [unit = u"mV"],
73+
i(t)=1.0, [unit = u"mA", connect = Flow])
74+
ODESystem(Equation[], t, sts, []; name = name)
7975
end
80-
@connector function LongPin(;name)
81-
sts = @variables(
82-
v(t)=1.0, [unit=u"V"],
83-
i(t)=1.0, [unit=u"A", connect = Flow],
84-
x(t)=1.0, [unit=NoUnits]
85-
)
86-
ODESystem(Equation[], t, sts, []; name=name)
76+
@connector function LongPin(; name)
77+
sts = @variables(v(t)=1.0, [unit = u"V"],
78+
i(t)=1.0, [unit = u"A", connect = Flow],
79+
x(t)=1.0, [unit = NoUnits])
80+
ODESystem(Equation[], t, sts, []; name = name)
8781
end
8882
@named p1 = Pin()
8983
@named p2 = Pin()

0 commit comments

Comments
 (0)