We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3656968 commit ceddc6fCopy full SHA for ceddc6f
1 file changed
control/iosys.py
@@ -1656,14 +1656,14 @@ def input_output_response(
1656
raise ValueError("ivp_method specified more than once")
1657
solve_ivp_kwargs['method'] = kwargs.pop('solve_ivp_method')
1658
1659
+ # Make sure there were no extraneous keywords
1660
+ if kwargs:
1661
+ raise TypeError("unrecognized keywords: ", str(kwargs))
1662
+
1663
# Set the default method to 'RK45'
1664
if solve_ivp_kwargs.get('method', None) is None:
1665
solve_ivp_kwargs['method'] = 'RK45'
1666
- # Make sure all input arguments got parsed
- if kwargs:
- raise TypeError("unknown parameters %s" % kwargs)
-
1667
# Sanity checking on the input
1668
if not isinstance(sys, InputOutputSystem):
1669
raise TypeError("System of type ", type(sys), " not valid")
0 commit comments