Skip to content

Commit c28e6f8

Browse files
committed
fix test type errors
1 parent 14fcda8 commit c28e6f8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

test/en_pf_native_validation.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@info "running explicit neutral power flow tests with native julia power flow solver"
22

33

4-
function conductor_correction!(data_eng::PowerModelsDistribution.EngineeringModel)
4+
function conductor_correction!(data_eng::AbstractDict)
55
nw = data_eng
66
if neutral_idx nw["conductor_ids"]
77
filter!(e -> e neutral_idx, nw["conductor_ids"])
@@ -45,7 +45,7 @@ end
4545

4646

4747

48-
function sourcebus_voltage_vector_correction!(data_math::MathematicalModel; explicit_neutral=true)
48+
function sourcebus_voltage_vector_correction!(data_math::AbstractDict; explicit_neutral=true)
4949
if haskey(data_math, "multinetwork")
5050
for (n, nw) in data_math["nw"]
5151
for (i, bus) in data_math["nw"]["bus"]
@@ -392,7 +392,6 @@ solution_dir = "data/opendss_solutions"
392392
end
393393

394394
sol_pmd = transform_solution(res["solution"], data_math, make_si=true)
395-
t
396395
v_maxerr_pu = compare_sol_dss_pmd(sol_dss, sol_pmd["nw"]["10"], eng_ts["nw"]["10"], data_math["nw"]["10"], verbose=false, compare_math=true)
397396
@test v_maxerr_pu <= 1E-1 # This tolerance is selected for the multinetwork to pass, must be tightened later. The problem may be with OpenDSS json result.
398397

0 commit comments

Comments
 (0)