Skip to content

Commit

Permalink
fix: Bug fix to have zero instead of zero vector
Browse files Browse the repository at this point in the history
  • Loading branch information
avinashresearch1 committed May 4, 2024
1 parent 382e97c commit 6e2af95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Blocks/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Base class for a multiple input multiple output (MIMO) continuous system block.
- `u_guess`: Initial value for the input
- `y_start`: Initial value for the output
"""
@component function MIMO(; name, nin = 1, nout = 1, u_start = nothing, y_start = nothing, u_guess = zeros(nin), y_guess = zeros(nout))
@component function MIMO(; name, nin = 1, nout = 1, u_start = nothing, y_start = nothing, u_guess = nin > 1 ? zeros(nin) : 0.0, y_guess = nout > 1 ? zeros(nout) : 0.0)
if u_start !== nothing
Base.depwarn(

Check warning on line 171 in src/Blocks/utils.jl

View check run for this annotation

Codecov / codecov/patch

src/Blocks/utils.jl#L169-L171

Added lines #L169 - L171 were not covered by tests
"The keyword argument `u_start` is deprecated. Use `u_guess` instead.", :u_start)
Expand Down

0 comments on commit 6e2af95

Please sign in to comment.