We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03322ff commit a69a331Copy full SHA for a69a331
control/tests/iosys_test.py
@@ -427,7 +427,7 @@ def test_algebraic_loop(self, tsys):
427
# Nonlinear system composed with LTI system (series) -- with states
428
ios_t, ios_y = ios.input_output_response(
429
nlios * lnios * nlios, T, U, X0)
430
- lti_t, lti_y, = ct.forced_response(linsys, T, U*U, X0)
+ lti_t, lti_y = ct.forced_response(linsys, T, U*U, X0)
431
np.testing.assert_array_almost_equal(ios_y, lti_y*lti_y, decimal=3)
432
433
# Nonlinear system in feeback loop with LTI system
@@ -483,7 +483,7 @@ def test_summer(self, tsys):
483
U = [np.sin(T), np.cos(T)]
484
X0 = 0
485
486
- lin_t, lin_y, = ct.forced_response(linsys_parallel, T, U, X0)
+ lin_t, lin_y = ct.forced_response(linsys_parallel, T, U, X0)
487
ios_t, ios_y = ios.input_output_response(iosys_parallel, T, U, X0)
488
np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.)
489
control/tests/lti_test.py
@@ -180,8 +180,8 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape):
180
if fcn == ct.frd:
181
sys = fcn(ct.rss(nstate, nout, ninp), omega)
182
elif fcn == ct.tf and (nout > 1 or ninp > 1) and not slycot_check():
183
- # Conversion of MIMO systems to transfer functions require slycot
184
- return
+ pytest.skip("Conversion of MIMO systems to transfer functions "
+ "requires slycot.")
185
else:
186
sys = fcn(ct.rss(nstate, nout, ninp))
187
control/tests/timeresp_test.py
@@ -724,8 +724,8 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape):
724
725
# Define the system
726
if fcn == ct.tf and (nout > 1 or ninp > 1) and not slycot_check():
727
728
729
730
sys = fcn(ct.rss(nstate, nout, ninp, strictly_proper=True))
731
@@ -753,7 +753,7 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape):
753
754
assert xvec.shape[1] == 8
755
756
- # Test cases were we choose a subset of inputs and outputs
+ # Test cases where we choose a subset of inputs and outputs
757
_, yvec = ct.step_response(
758
sys, tvec, input=ninp-1, output=nout-1, squeeze=squeeze)
759
if squeeze is False:
0 commit comments