Skip to content

Commit 839fa72

Browse files
committed
Fix PSSE raw import for gen_status at load buses
1 parent 178ce13 commit 839fa72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io/psse.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function _psse2pm_generator!(pm_data::Dict, pti_data::Dict, import_all::Bool)
211211
sub_data = Dict{String,Any}()
212212

213213
sub_data["gen_bus"] = pop!(gen, "I")
214-
sub_data["gen_status"] = pop!(gen, "STAT")
214+
sub_data["gen_status"] = _get_bus_value(sub_data["gen_bus"], "bus_type", pm_data) == 1 ? begin delete!(gen, "STAT"); 0 end : pop!(gen, "STAT") # In PSSE active generators at bus type 1 are ignored. PQ or PV control mode is controlled by "Machine Control Mode" parameter (Machine Data Record -> Wind Data -> Control Mode)
215215
sub_data["pg"] = pop!(gen, "PG")
216216
sub_data["qg"] = pop!(gen, "QG")
217217
sub_data["vg"] = pop!(gen, "VS")

0 commit comments

Comments
 (0)