Skip to content

Commit d82ea13

Browse files
committed
JuliaFormatter v1 instead of v2
1 parent 90808ff commit d82ea13

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Electrical/Analog/ideal_components.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ G will therefore be 0 when the input is false [0] and G_on when the input is tru
440440

441441
@equations begin
442442
state ~ input.u
443-
G ~ state*Gon
444-
i ~ G*v
443+
G ~ state * Gon
444+
i ~ G * v
445445
end
446446
end

test/Electrical/analog.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ end
413413

414414
# Tests
415415
@test all(diode_current .>= -1e-3)
416-
@test capacitor_voltage[end] .≈ 8.26 rtol=3e-1
416+
@test capacitor_voltage[end].8.26 rtol=3e-1
417417

418418
# For visual inspection
419419
# plt = plot(sol; idxs = [diode.i, resistor.i, capacitor.v],

test/Thermal/thermal.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ using OrdinaryDiffEq: ReturnCode.Success
2929
# Check if Relative temperature sensor reads the temperature of heat capacitor
3030
# when connected to a thermal conductor and a fixed temperature source
3131
@test SciMLBase.successful_retcode(sol)
32-
@test sol[reltem_sensor.T.u] + sol[tem_src.port.T] == sol[mass1.T] + sol[th_conductor.dT]
32+
@test sol[reltem_sensor.T.u] + sol[tem_src.port.T] ==
33+
sol[mass1.T] + sol[th_conductor.dT]
3334

3435
@info "Building a two-body system..."
3536
eqs = [connect(T_sensor1.port, mass1.port, th_conductor.port_a)

0 commit comments

Comments
 (0)