8000 tweak iosys kwargs checking · DavidLXu/python-control@14fa890 · GitHub
[go: up one dir, main page]

Skip to content

Commit 14fa890

Browse files
committed
tweak iosys kwargs checking
1 parent ecdf1e7 commit 14fa890

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

control/iosys.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,15 +1663,14 @@ def input_output_response(
16631663
# Process keyword arguments
16641664
#
16651665

1666-
# Allow method as an alternative to solve_ivp_method
1667-
if kwargs.get('method', None):
1668-
solve_ivp_kwargs['method'] = kwargs.pop('method')
1669-
16701666
# Figure out the method to be used
16711667
if kwargs.get('solve_ivp_method', None):
16721668
if kwargs.get('method', None):
16731669
raise ValueError("ivp_method specified more than once")
16741670
solve_ivp_kwargs['method'] = kwargs.pop('solve_ivp_method')
1671+
elif kwargs.get('method', None):
1672+
# Allow method as an alternative to solve_ivp_method
1673+
solve_ivp_kwargs['method'] = kwargs.pop('method')
16751674

16761675
# Set the default method to 'RK45'
16771676
if solve_ivp_kwargs.get('method', None) is None:

0 commit comments

Comments
 (0)
0