Skip to content

Commit 4f9daea

Browse files
committed
Fix element type of Dict in pf.jl
1 parent 3473bc2 commit 4f9daea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prob/pf.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ function compute_ac_pf(pf_data::PowerFlowData; kwargs...)
312312
if bus["bus_type"] != 4
313313
bus_idx = am.bus_to_idx[bus["index"]]
314314

315-
bus_assignment[i] = Dict(
315+
bus_assignment[i] = Dict{String,Float64}(
316316
"vm" => pf_data.vm_idx[bus_idx],
317317
"va" => pf_data.va_idx[bus_idx]
318318
)
@@ -322,7 +322,7 @@ function compute_ac_pf(pf_data::PowerFlowData; kwargs...)
322322
gen_assignment= Dict{String,Any}()
323323
for (i,gen) in data["gen"]
324324
if gen["gen_status"] != 0
325-
gen_assignment[i] = Dict(
325+
gen_assignment[i] = Dict{String,Float64}(
326326
"pg" => gen["pg"],
327327
"qg" => gen["qg"]
328328
)

0 commit comments

Comments
 (0)