Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3656968

Browse files
committed
remove_useless -> remove_useless_states in iosys
1 parent8b6bfd1 commit3656968

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎control/iosys.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def linearize(self, x0, u0, t=0, params={}, eps=1e-6,
560560

561561
# Create the state space system
562562
linsys=LinearIOSystem(
563-
StateSpace(A,B,C,D,self.dt,remove_useless=False),
563+
StateSpace(A,B,C,D,self.dt,remove_useless_states=False),
564564
name=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,
660660
states=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):
15511551
io_sys.nstates!=ss_sys.nstates:
15521552
raiseValueError("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

15561556
else:
15571557
raiseTypeError("Second argument must be a state space system.")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp