From bc650001fd9bde6b2277eb4f49f62323fcb50e97 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Fri, 31 Jul 2020 03:40:42 +0200 Subject: [PATCH] do not override squeeze parameter in forced_response --- control/timeresp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/timeresp.py b/control/timeresp.py index 8670c180d..bf9dd59b4 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -325,7 +325,7 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, # Separate out the discrete and continuous time cases if isctime(sys): # Solve the differential equation, copied from scipy.signal.ltisys. - dot, squeeze, = np.dot, np.squeeze # Faster and shorter code + dot = np.dot # Faster and shorter code # Faster algorithm if U is zero if U is None or (isinstance(U, (int, float)) and U == 0):