File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments