We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10286f8 commit f1dd0a9Copy full SHA for f1dd0a9
control/iosys.py
@@ -1758,6 +1758,9 @@ def _find_size(sysval, vecval):
1758
# None or 0, which is a valid value for "a (sysval, ) vector of zeros".
1759
if not vecval:
1760
return 0 if sysval is None else sysval
1761
+ elif sysval == 1:
1762
+ # (1, scalar) is also a valid combination from legacy code
1763
+ return 1
1764
raise ValueError("Can't determine size of system component.")
1765
1766
0 commit comments