Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add test for extraneous keywords in statesp
  • Loading branch information
murrayrm committed Mar 30, 2022
commit 57e3751ffabc5385898eaaaa6576431906ccbd3a
5 changes: 5 additions & 0 deletions control/statesp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,12 @@ def _ss(*args, keywords=None, **kwargs):
"""Internal function to create StateSpace system"""
if len(args) == 4 or len(args) == 5:
return StateSpace(*args, keywords=keywords, **kwargs)

elif len(args) == 1:
# Make sure there were no extraneous keywords
if kwargs:
raise TypeError("unrecognized keywords: ", str(kwargs))

from .xferfcn import TransferFunction
sys = args[0]
if isinstance(sys, StateSpace):
Expand Down