Skip to content

Commit

Permalink
Make check more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-thom committed Feb 5, 2024
1 parent 3f38992 commit 0b94d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subsystems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ end

function _check_num_subsystems(sys::System)
num_buses = length(sys.bus_numbers)
if num_buses == get_num_subsystems(sys)
if get_num_subsystems(sys) >= num_buses
throw(
IS.InvalidValue(
"The number of subsystems cannot exceed the number of buses: $num_buses",
Expand Down

0 comments on commit 0b94d9b

Please sign in to comment.