@@ -243,8 +243,6 @@ def testAddition(self, tsys):
243
243
StateSpace .__add__ (tsys .mimo_ss1c , tsys .mimo_ss1d )
244
244
with pytest .raises (ValueError ):
245
245
StateSpace .__add__ (tsys .mimo_ss1d , tsys .mimo_ss2d )
246
- with pytest .raises (ValueError ):
247
- StateSpace .__add__ (tsys .siso_ss1d , tsys .siso_ss3d )
248
246
249
247
# Transfer function addition
250
248
sys = tsys .siso_tf1 + tsys .siso_tf1d
@@ -260,8 +258,6 @@ def testAddition(self, tsys):
260
258
TransferFunction .__add__ (tsys .siso_tf1c , tsys .siso_tf1d )
261
259
with pytest .raises (ValueError ):
262
260
TransferFunction .__add__ (tsys .siso_tf1d , tsys .siso_tf2d )
263
- with pytest .raises (ValueError ):
264
- TransferFunction .__add__ (tsys .siso_tf1d , tsys .siso_tf3d )
265
261
266
262
# State space + transfer function
267
263
sys = tsys .siso_ss1c + tsys .siso_tf1c
@@ -285,8 +281,6 @@ def testMultiplication(self, tsys):
285
281
StateSpace .__mul__ (tsys .mimo_ss1c , tsys .mimo_ss1d )
286
282
with pytest .raises (ValueError ):
287
283
StateSpace .__mul__ (tsys .mimo_ss1d , tsys .mimo_ss2d )
288
- with pytest .raises (ValueError ):
289
- StateSpace .__mul__ (tsys .siso_ss1d , tsys .siso_ss3d )
290
284
291
285
# Transfer function multiplication
292
286
sys = tsys .siso_tf1 * tsys .siso_tf1d
@@ -301,8 +295,6 @@ def testMultiplication(self, tsys):
301
295
TransferFunction .__mul__ (tsys .siso_tf1c , tsys .siso_tf1d )
302
296
with pytest .raises (ValueError ):
303
297
TransferFunction .__mul__ (tsys .siso_tf1d , tsys .siso_tf2d )
304
- with pytest .raises (ValueError ):
305
- TransferFunction .__mul__ (tsys .siso_tf1d , tsys .siso_tf3d )
306
298
307
299
# State space * transfer function
308
300
sys = tsys .siso_ss1c * tsys .siso_tf1c
@@ -328,8 +320,6 @@ def testFeedback(self, tsys):
328
320
feedback (tsys .mimo_ss1c , tsys .mimo_ss1d )
329
321
with pytest .raises (ValueError ):
330
322
feedback (tsys .mimo_ss1d , tsys .mimo_ss2d )
331
- with pytest .raises (ValueError ):
332
- feedback (tsys .siso_ss1d , tsys .siso_ss3d )
333
323
334
324
# Transfer function feedback
335
325
sys = feedback (tsys .siso_tf1 , tsys .siso_tf1d )
@@ -344,8 +334,6 @@ def testFeedback(self, tsys):
344
334
feedback (tsys .siso_tf1c , tsys .siso_tf1d )
345
335
with pytest .raises (ValueError ):
346
336
feedback (tsys .siso_tf1d , tsys .siso_tf2d )
347
- with pytest .raises (ValueError ):
348
- feedback (tsys .siso_tf1d , tsys .siso_tf3d )
349
337
350
338
# State space, transfer function
351
339
sys = feedback (tsys .siso_ss1c , tsys .siso_tf1c )
0 commit comments