Skip to content

Commit 8d0fb10

Browse files
committed
use *_labels in input_output_response for consistency
1 parent 6550230 commit 8d0fb10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

control/iosys.py

Lines changed: 4 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy