Skip to content

Commit

Permalink
Fix PSSE raw import for gen_status at load buses
Browse files Browse the repository at this point in the history
  • Loading branch information
KSepetanc committed Nov 1, 2024
1 parent 178ce13 commit 839fa72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/psse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function _psse2pm_generator!(pm_data::Dict, pti_data::Dict, import_all::Bool)
sub_data = Dict{String,Any}()

sub_data["gen_bus"] = pop!(gen, "I")
sub_data["gen_status"] = pop!(gen, "STAT")
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)
sub_data["pg"] = pop!(gen, "PG")
sub_data["qg"] = pop!(gen, "QG")
sub_data["vg"] = pop!(gen, "VS")
Expand Down

0 comments on commit 839fa72

Please sign in to comment.