Skip to content

Commit d96bc70

Browse files
committed
allow bigger relative tolerance for discrete margin test
1 parent 1a27e62 commit d96bc70

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

control/tests/margin_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,4 +337,5 @@ def test_stability_margins_discrete(cnum, cden, dt, ref):
337337
"""Test stability_margins with discrete TF input"""
338338
tf = TransferFunction(cnum, cden).sample(dt)
339339
out = stability_margins(tf)
340-
assert_allclose(out, ref, atol=1.5e-2)
340+
# the numeric precision is really not that great
341+
assert_allclose(out, ref, rtol=2e-2)

0 commit comments

Comments
 (0)