Skip to content

Commit 74d96f0

Browse files
committed
added new kwarg to tests, un-skip tests that were previously giving warnings and problems.
1 parent 0fb9d94 commit 74d96f0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

control/tests/sisotool_test.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,22 +182,23 @@ def plant(self, request):
182182
@pytest.mark.parametrize('Kp0', (0,))
183183
@pytest.mark.parametrize('Ki0', (1.,))
184184
@pytest.mark.parametrize('Kd0', (0.1,))
185+
@pytest.mark.parametrize('deltaK', (1.,))
185186
@pytest.mark.parametrize('tau', (0.01,))
186187
@pytest.mark.parametrize('C_ff', (0, 1,))
187188
@pytest.mark.parametrize('derivative_in_feedback_path', (True, False,))
188189
@pytest.mark.parametrize("kwargs", [{'plot':False},])
189-
def test_pid_designer_1(self, plant, gain, sign, input_signal, Kp0, Ki0, Kd0, tau, C_ff,
190+
def test_pid_designer_1(self, plant, gain, sign, input_signal, Kp0, Ki0, Kd0, deltaK, tau, C_ff,
190191
derivative_in_feedback_path, kwargs):
191-
rootlocus_pid_designer(plant, gain, sign, input_signal, Kp0, Ki0, Kd0, tau, C_ff,
192+
rootlocus_pid_designer(plant, gain, sign, input_signal, Kp0, Ki0, Kd0, deltaK, tau, C_ff,
192193
derivative_in_feedback_path, **kwargs)
193194

194195
# test creation of sisotool plot
195196
# input from reference or disturbance
196-
@pytest.mark.skip("Bode plot is incorrect; generates spurious warnings")
197197
@pytest.mark.parametrize('plant', ('syscont', 'syscont221'), indirect=True)
198198
@pytest.mark.parametrize("kwargs", [
199199
{'input_signal':'r', 'Kp0':0.01, 'derivative_in_feedback_path':True},
200-
{'input_signal':'d', 'Kp0':0.01, 'derivative_in_feedback_path':True},])
200+
{'input_signal':'d', 'Kp0':0.01, 'derivative_in_feedback_path':True},
201+
{'input_signal':'r', 'Kd0':0.01, 'derivative_in_feedback_path':True}])
201202
def test_pid_designer_2(self, plant, kwargs):
202203
rootlocus_pid_designer(plant, **kwargs)
203204

0 commit comments

Comments
 (0)