Skip to content

Commit 5e8a35e

Browse files
committed
Fix bug with branch-bus inconsistency
1 parent 1e21c55 commit 5e8a35e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pwf2pm/branch.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ function _handle_br_status!(pm_data::Dict, sub_data::Dict, branch::Dict)
3232
if pm_data["bus"]["$f_bus"]["bus_type"] != 4 && pm_data["bus"]["$t_bus"]["bus_type"] != 4
3333
if branch["STATUS"] == branch["OPENING FROM BUS"] == branch["OPENING TO BUS"] == 'L'
3434
sub_data["br_status"] = 1
35+
else
36+
sub_data["br_status"] = 0
3537
end
3638
else
3739
sub_data["br_status"] = 0

0 commit comments

Comments
 (0)