Skip to content

Commit

Permalink
Fix bug with branch-bus inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
iagochavarry committed Jan 11, 2022
1 parent 1e21c55 commit 5e8a35e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pwf2pm/branch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ function _handle_br_status!(pm_data::Dict, sub_data::Dict, branch::Dict)
if pm_data["bus"]["$f_bus"]["bus_type"] != 4 && pm_data["bus"]["$t_bus"]["bus_type"] != 4
if branch["STATUS"] == branch["OPENING FROM BUS"] == branch["OPENING TO BUS"] == 'L'
sub_data["br_status"] = 1
else
sub_data["br_status"] = 0
end
else
sub_data["br_status"] = 0
Expand Down

0 comments on commit 5e8a35e

Please sign in to comment.