Skip to content

Commit 96b6de6

Browse files
author
Sathvik Bhagavan
committed
refactor: make nin and nout required for Real*Array components
1 parent 4cfc041 commit 96b6de6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Blocks/utils.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Connector with one input signal of type Real.
2626
- `u`: Value of the connector which is a scalar.
2727
""" RealInput
2828

29-
@connector function RealInputArray(; name, nin = 2, u_start = zeros(nin))
29+
@connector function RealInputArray(; name, nin, u_start = zeros(nin))
3030
@variables u(t)[1:nin] [
3131
input = true,
3232
description = "Inner variable in RealInputArray $name"
@@ -40,7 +40,7 @@ end
4040
Connector with an array of input signals of type Real.
4141
4242
# Parameters:
43-
- `nin=2`: Number of inputs.
43+
- `nin`: Number of inputs.
4444
- `u_start=zeros(nin)`: Guess value for `u`.
4545
4646
# States:
@@ -75,7 +75,7 @@ Connector with one output signal of type Real.
7575
- `u`: Value of the connector which is a scalar.
7676
""" RealOutput
7777

78-
@connector function RealOutputArray(; name, nout = 2, u_start = zeros(nout))
78+
@connector function RealOutputArray(; name, nout, u_start = zeros(nout))
7979
@variables u(t)[1:nout] [
8080
output = true,
8181
description = "Inner variable in RealOutputArray $name"
@@ -89,7 +89,7 @@ end
8989
Connector with an array of output signals of type Real.
9090
9191
# Parameters:
92-
- `nout=2`: Number of outputs.
92+
- `nout`: Number of outputs.
9393
- `u_start=zeros(nout)`: Guess value for `u`.
9494
9595
# States:

0 commit comments

Comments
 (0)