You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for k in K, l in 1:length(data_eng["load"])
bus_id = data_eng["load"]["load$l"]["bus"]
bus_ind = data_math_mn["bus_lookup"][bus_id] # <--- error here
sol_bus = sol_eng["nw"]["$k"]["bus"][bus_id]
data_bus = data_eng["bus"][bus_id]
vbase = data_math_mn["nw"]["$k"]["bus"]["$bus_ind"]["vbase"]
phase = data_eng["load"]["load$l"]["connections"][1]
ind = findfirst(data_bus["terminals"].==phase)
vm_pu_lk[l,k] = abs(sol_bus["vr"][ind]+im*sol_bus["vi"][ind])/vbase
end
The error is: KeyError: key "34" not found The error line is indicated above. As an aside, the next two lines do not throw an error:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The tutorial Extending PowerModelsDistribution.jl throws an error towards the end, in this block:
The error is:
KeyError: key "34" not found
The error line is indicated above. As an aside, the next two lines do not throw an error:The
data_math_mn["bus_lookup"]
has 10 elements that look like so:Key "34" is not one of them. The
data_eng["load"]
has 55 elements that look like so:The
data_eng["load"]["load34"]
looks like so:Can anyone suggest why the two problems would have a different set of buses for terminals that have loads? I'm using PowerModelsDistribution v0.15.1.
The text was updated successfully, but these errors were encountered: