Skip to content

Commit a0986c5

Browse files
committed
rename to allow_nonproper
1 parent 16498d1 commit a0986c5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

control/tests/xferfcn_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,9 +561,9 @@ def test_common_den_nonproper(self):
561561
np.testing.assert_raises(ValueError, tf1._common_den)
562562
np.testing.assert_raises(ValueError, tf2._common_den)
563563

564-
_, den1, _ = tf1._common_den(allownonproper=True)
564+
_, den1, _ = tf1._common_den(allow_nonproper=True)
565565
np.testing.assert_array_almost_equal(den1, common_den_ref)
566-
_, den2, _ = tf2._common_den(allownonproper=True)
566+
_, den2, _ = tf2._common_den(allow_nonproper=True)
567567
np.testing.assert_array_almost_equal(den2, common_den_ref)
568568

569569
@unittest.skipIf(not slycot_check(), "slycot not installed")

control/xferfcn.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ def freqresp(self, omega):
679679

680680
def pole(self):
681681
"""Compute the poles of a transfer function."""
682-
_, den, denorder = self._common_den(allownonproper=True)
682+
_, den, denorder = self._common_den(allow_nonproper=True)
683683
rts = []
684684
for d, o in zip(den, denorder):
685685
rts.extend(roots(d[:o + 1]))
@@ -797,7 +797,7 @@ def returnScipySignalLTI(self):
797797

798798
return out
799799

800-
def _common_den(self, imag_tol=None, allownonproper=False):
800+
def _common_den(self, imag_tol=None, allow_nonproper=False):
801801
"""
802802
Compute MIMO common denominators; return them and adjusted numerators.
803803
@@ -813,7 +813,7 @@ def _common_den(self, imag_tol=None, allownonproper=False):
813813
Threshold for the imaginary part of a root to use in detecting
814814
complex poles
815815
816-
allownonproper : boolean
816+
allow_nonproper : boolean
817817
Do not enforce proper transfer functions
818818
819819
Returns
@@ -825,8 +825,8 @@ def _common_den(self, imag_tol=None, allownonproper=False):
825825
gives the numerator coefficient array for the ith output and jth
826826
input; padded for use in td04ad ('C' option); matches the
827827
denorder order; highest coefficient starts on the left.
828-
If allownonproper=True and the order of a numerator exceeds the
829-
order of the common denominator, num will be retured as None
828+
If allow_nonproper=True and the order of a numerator exceeds the
829+
order of the common denominator, num will be returned as None
830830
831831
den: array
832832
sys.inputs by kd
@@ -942,7 +942,7 @@ def _common_den(self, imag_tol=None, allownonproper=False):
942942
# numerater has a higher order than the denominator, the
943943
# padding will fail
944944
if len(numpoly) > maxindex + 1:
945-
if allownonproper:
945+
if allow_nonproper:
946946
havenonproper = True
947947
break
948948
raise ValueError(

0 commit comments

Comments
 (0)