You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
, which initializes a System with an empty set of bus numbers that never gets added to except in handle_component_addition!.
Without objection, I propose to treat this as a bug: whenever we give a System to the user, get_bus_numbers(sys) should always correspond to get_number.(get_components(ACBus, sys)). The fix, changing that line to
MWE:
The culprit is this line in the
System
inner constructor:PowerSystems.jl/src/base.jl
Line 136 in 774695e
, which initializes a
System
with an empty set of bus numbers that never gets added to except inhandle_component_addition!
.Without objection, I propose to treat this as a bug: whenever we give a
System
to the user,get_bus_numbers(sys)
should always correspond toget_number.(get_components(ACBus, sys))
. The fix, changing that line to, does not seem to break anything. Without objection, I'll push that fix along with my implementation of #1231.
The text was updated successfully, but these errors were encountered: