@@ -1427,40 +1427,40 @@ def test_timeresp_aliases():
14271427
14281428 # Aliases
14291429 resp_short = ct .input_output_response (sys , timepts , 1 , X0 = [1 , 1 ])
1430- np .testing .assert_allclose (resp_long .states , resp_posn .states )
1430+ np .testing .assert_allclose (resp_long .states , resp_short .states )
14311431
14321432 # Legacy
14331433 with pytest .warns (PendingDeprecationWarning , match = "legacy" ):
14341434 resp_legacy = ct .input_output_response (sys , timepts , 1 , x0 = [1 , 1 ])
1435- np .testing .assert_allclose (resp_long .states , resp_posn .states )
1435+ np .testing .assert_allclose (resp_long .states , resp_legacy .states )
14361436
14371437 # Check for multiple values: full keyword and alias
14381438 with pytest .raises (TypeError , match = "multiple" ):
1439- resp_multiple = ct .input_output_response (
1439+ ct .input_output_response (
14401440 sys , timepts , 1 , initial_state = [1 , 2 ], X0 = [1 , 1 ])
14411441
14421442 # Check for multiple values: positional and keyword
14431443 with pytest .raises (TypeError , match = "multiple" ):
1444- resp_multiple = ct .input_output_response (
1444+ ct .input_output_response (
14451445 sys , timepts , 1 , [1 , 2 ], initial_state = [1 , 1 ])
14461446
14471447 # Check for multiple values: positional and alias
14481448 with pytest .raises (TypeError , match = "multiple" ):
1449- resp_multiple = ct .input_output_response (
1449+ ct .input_output_response (
14501450 sys , timepts , 1 , [1 , 2 ], X0 = [1 , 1 ])
14511451
14521452 # Make sure that LTI functions check for keywords
14531453 with pytest .raises (TypeError , match = "unrecognized keyword" ):
1454- resp = ct .forced_response (sys , timepts , 1 , unknown = True )
1454+ ct .forced_response (sys , timepts , 1 , unknown = True )
14551455
14561456 with pytest .raises (TypeError , match = "unrecognized keyword" ):
1457- resp = ct .impulse_response (sys , timepts , unknown = True )
1457+ ct .impulse_response (sys , timepts , unknown = True )
14581458
14591459 with pytest .raises (TypeError , match = "unrecognized keyword" ):
1460- resp = ct .initial_response (sys , timepts , [1 , 2 ], unknown = True )
1460+ ct .initial_response (sys , timepts , [1 , 2 ], unknown = True )
14611461
14621462 with pytest .raises (TypeError , match = "unrecognized keyword" ):
1463- resp = ct .step_response (sys , timepts , unknown = True )
1463+ ct .step_response (sys , timepts , unknown = True )
14641464
14651465 with pytest .raises (TypeError , match = "unrecognized keyword" ):
1466- info = ct .step_info (sys , timepts , unknown = True )
1466+ ct .step_info (sys , timepts , unknown = True )
0 commit comments