Skip to content

Commit 7890f21

Browse files
committed
parse json into dicts instead of objects
1 parent c554007 commit 7890f21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/en_pf_native_validation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ solution_dir = "data/opendss_solutions"
392392
end
393393

394394
sol_pmd = transform_solution(res["solution"], data_math, make_si=true)
395-
395+
t
396396
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)
397397
@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.
398398

@@ -419,7 +419,7 @@ filter!(e -> e ≠ "case3_unbalanced_delta_loads", cases)
419419

420420
# obtain solution from dss
421421
sol_dss = open("$solution_dir/$case.json", "r") do f
422-
JSON.parse(f)
422+
Dict{String, Any}(JSON.parse(f))
423423
end
424424

425425
sol_pmd = transform_solution(res["solution"], data_math, make_si=true)

0 commit comments

Comments
 (0)