Skip to content

Commit f9c5b3b

Browse files
committed
Fix ruff shadowed symbol warning in xferfcn.py
1 parent ae5a702 commit f9c5b3b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

control/xferfcn.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ def __init__(self, *args, **kwargs):
221221
# Determine if the transfer function is static (needed for dt)
222222
static = True
223223
for arr in [num, den]:
224-
for poly in np.nditer(arr, flags=['refs_ok']):
225-
if poly.item().size > 1:
224+
for poly_ in np.nditer(arr, flags=['refs_ok']):
225+
if poly_.item().size > 1:
226226
static = False
227227
break
228228
if not static:
@@ -1283,8 +1283,8 @@ def _isstatic(self):
12831283
that is, if the system has no dynamics. """
12841284
for list_of_polys in self.num, self.den:
12851285
for row in list_of_polys:
1286-
for poly in row:
1287-
if len(poly) > 1:
1286+
for poly_ in row:
1287+
if len(poly_) > 1:
12881288
return False
12891289
return True
12901290

0 commit comments

Comments
 (0)