We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c498d3d commit 020734dCopy full SHA for 020734d
control/xferfcn.py
@@ -125,7 +125,9 @@ def __init__(self, *args):
125
# but be careful.
126
data = [num, den]
127
for i in range(len(data)):
128
- if isinstance(data[i], (int, float, complex)):
+ # Check for a scalar (including 0d ndarray)
129
+ if (isinstance(data[i], (int, float, complex)) or
130
+ (isinstance(data[i], ndarray) and data[i].ndim == 0)):
131
# Convert scalar to list of list of array.
132
if (isinstance(data[i], int)):
133
# Convert integers to floats at this point
0 commit comments