Skip to content

Commit 8101b31

Browse files
committed
Update after failed tests
1 parent 2644874 commit 8101b31

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

control/tests/xferfcn_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ def test_printing_mimo(self):
966966
])
967967
def test_printing_zpk(self, zeros, poles, gain, output):
968968
"""Test _tf_polynomial_to_string for constant systems"""
969-
G = zpk(zeros, poles, gain)
969+
G = zpk(zeros, poles, gain, display_format='zpk')
970970
res = str(G)
971971
assert res == output
972972

control/xferfcn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def __str__(self, var=None):
486486
outstr += "\n" + numstr + "\n" + dashes + "\n" + denstr + "\n"
487487

488488
# If this is a strict discrete time system, print the sampling time
489-
if self.isdtime(strict=True):
489+
if type(self.dt) != bool and self.isdtime(strict=True):
490490
outstr += "\ndt = " + str(self.dt) + "\n"
491491

492492
return outstr

0 commit comments

Comments
 (0)