Skip to content

Commit 56c72c7

Browse files
murrayrmjoaoantoniocardoso
authored andcommitted
use *_labels in input_output_response for consistency
1 parent a78e85c commit 56c72c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

control/iosys.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ def ufun(t):
18621862

18631863
return TimeResponseData(
18641864
t_eval, y, None, u, issiso=sys.issiso(),
1865-
output_labels=sys.output_index, input_labels=sys.input_index,
1865+
output_labels=sys.output_labels, input_labels=sys.input_labels,
18661866
transpose=transpose, return_x=return_x, squeeze=squeeze)
18671867

18681868
# Create a lambda function for the right hand side
@@ -1941,8 +1941,8 @@ def ivp_rhs(t, x):
19411941

19421942
return TimeResponseData(
19431943
soln.t, y, soln.y, u, issiso=sys.issiso(),
1944-
output_labels=sys.output_index, input_labels=sys.input_index,
1945-
state_labels=sys.state_index,
1944+
output_labels=sys.output_labels, input_labels=sys.input_labels,
1945+
state_labels=sys.state_labels,
19461946
transpose=transpose, return_x=return_x, squeeze=squeeze)
19471947

19481948

@@ -2881,7 +2881,7 @@ def interconnect(
28812881

28822882
# Look for the signal name as a system input
28832883
for sys in syslist:
2884-
if signal_name in sys.input_index.keys():
2884+
if signal_name in sys.input_labels:
28852885
connection.append(sign + sys.name + "." + signal_name)
28862886

28872887
# Make sure we found the name

0 commit comments

Comments
 (0)