Skip to content

Commit 00b36c0

Browse files
committed
fix tap_control information inside bus section
1 parent 7152b29 commit 00b36c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pwf2pm/transformer.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ function _pwf2pm_transformer!(pm_data::Dict, pwf_data::Dict, branch::Dict; add_c
111111
sub_data["control_data"]["controlled_bus"] = branch_dctr[circuit]["MEASUREMENT EXTREMITY"]
112112

113113
# Add tap control information in controlled bus
114-
pm_data["bus"]["$(sub_data["control_data"]["controlled_bus"])"]["control_data"]["control_type"] = "tap_control"
114+
pm_data["bus"]["$(sub_data["control_data"]["controlled_bus"])"]["control_data"]["tap_control"] = true
115115
if isnothing(pm_data["bus"]["$(sub_data["control_data"]["controlled_bus"])"]["control_data"]["tap_constraint_type"]) # setpoint is more restrict than bounds
116116
pm_data["bus"]["$(sub_data["control_data"]["controlled_bus"])"]["control_data"]["tap_constraint_type"] = "bounds"
117117
end
118118

119119
else
120-
pm_data["bus"]["$(sub_data["control_data"]["controlled_bus"])"]["control_data"]["control_type"] = "tap_control"
120+
pm_data["bus"]["$(sub_data["control_data"]["controlled_bus"])"]["control_data"]["tap_control"] = true
121121

122122
sub_data["control_data"]["constraint_type"] = "setpoint"
123123
sub_data["control_data"]["valsp"] = nothing

0 commit comments

Comments
 (0)