@@ -560,7 +560,7 @@ def linearize(self, x0, u0, t=0, params={}, eps=1e-6,
560560
561561# Create the state space system
562562linsys = LinearIOSystem (
563- StateSpace (A ,B ,C ,D ,self .dt ,remove_useless = False ),
563+ StateSpace (A ,B ,C ,D ,self .dt ,remove_useless_states = False ),
564564name = name ,** kwargs )
565565
566566# Set the names the system, inputs, outputs, and states
@@ -660,7 +660,7 @@ def __init__(self, linsys, inputs=None, outputs=None, states=None,
660660states = linsys .nstates ,params = {},dt = linsys .dt ,name = name )
661661
662662# Initalize additional state space variables
663- StateSpace .__init__ (self ,linsys ,remove_useless = False )
663+ StateSpace .__init__ (self ,linsys ,remove_useless_states = False )
664664
665665# Process input, output, state lists, if given
666666# Make sure they match the size of the linear system
@@ -1551,7 +1551,7 @@ def __init__(self, io_sys, ss_sys=None):
15511551io_sys .nstates != ss_sys .nstates :
15521552raise ValueError ("System dimensions for first and second "
15531553"arguments must match." )
1554- StateSpace .__init__ (self ,ss_sys ,remove_useless = False )
1554+ StateSpace .__init__ (self ,ss_sys ,remove_useless_states = False )
15551555
15561556else :
15571557raise TypeError ("Second argument must be a state space system." )