WISPO-POP / PowerPlots.jl

Functions plot PowerModels networks
BSD 3-Clause "New" or "Revised" License
21 stars 2 forks source link

Issue plotting RTS_GMLC system #83

Closed noahrhodes closed 2 years ago

noahrhodes commented 2 years ago

getting an error when making a PowerModelsGraph from the RTS system. Cannot replicate on other networks.

Maybe an issue with bus numbering?

ERROR: LoadError: BoundsError: attempt to access 120-element Vector{Tuple{Int64, Int64}} at index [121]
Stacktrace:
 [1] setindex!(A::Vector{Tuple{Int64, Int64}}, x::Tuple{Int64, Int64}, i1::Int64)
   @ Base .\array.jl:839
 [2] PowerModelsGraph(data::Dict{String, Any}, node_types::Vector{String}, edge_types::Vector{String})
   @ PowerPlots ~\.julia\packages\PowerPlots\N6W2p\src\core\types.jl:78
 [3] layout_network(case::Dict{String, Any}; fixed::Bool, layout_algorithm::typeof(kamada_kawai), node_types::Vector{String}, edge_types::Vector{String}, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})