Skip to content

Commit d6432ca

Browse files
committed
revert unneeded change on find_eqpt checks for arg lengths
1 parent b34f72e commit d6432ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

control/nlsys.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,9 +1767,9 @@ def find_eqpt(sys, x0, u0=None, y0=None, t=0, params=None,
17671767

17681768
# Make sure the input arguments match the sizes of the system
17691769
if len(x0) != nstates or \
1770-
(u0 is not None and iu is None and len(u0) != ninputs) or \
1771-
(y0 is not None and iy is None and len(y0) != noutputs) or \
1772-
(dx0 is not None and idx is None and len(dx0) != nstates):
1770+
(u0 is not None and len(u0) != ninputs) or \
1771+
(y0 is not None and len(y0) != noutputs) or \
1772+
(dx0 is not None and len(dx0) != nstates):
17731773
raise ValueError("length of input arguments does not match system")
17741774

17751775
# Update the parameter values
@@ -2572,7 +2572,7 @@ def interconnect(
25722572
return newsys
25732573

25742574

2575-
# Utility function to allow lists states, inputs
2575+
# Utility function to allow lists of states, inputs
25762576
def _concatenate_list_elements(X, name='X'):
25772577
# If we were passed a list, concatenate the elements together
25782578
if isinstance(X, (tuple, list)):

0 commit comments

Comments
 (0)