Skip to content

Commit

Permalink
accept colon for w1 in connect
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Apr 21, 2023
1 parent 7a1f118 commit 43f909e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "RobustAndOptimalControl"
uuid = "21fd56a4-db03-40ee-82ee-a87907bee541"
authors = ["Fredrik Bagge Carlson", "Marcus Greiff"]
version = "0.4.23"
version = "0.4.24"

[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand Down
2 changes: 1 addition & 1 deletion src/named_systems2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ G = connect([F, R, C, P, addP, addC], connections; w1)
If an external input is to be connected to multiple points, use a `splitter` to split up the signal into a set of unique names which are then used in the connections.
"""
function connect(systems; u1::Vector{Symbol}, y1::Vector{Symbol}, w1::Vector{Symbol}, z1 = (:), verbose = true, kwargs...)
function connect(systems; u1::Vector{Symbol}, y1::Vector{Symbol}, w1, z1 = (:), verbose = true, kwargs...)
full = append(systems...)
@assert length(y1) == length(u1)
@check_unique u1 "Connected inputs not unique. If you want to connect several signals to the same input, use a summation node, e.g., named_ss(ss([1 1]), u=[:u1, :u2], y=:usum)"
Expand Down

0 comments on commit 43f909e

Please sign in to comment.