8000 Merge pull request #774 from hyumo/main · python-control/python-control@61ef12b · GitHub
[go: up one dir, main page]

Skip to content

Commit 61ef12b

Browse files
authored
Merge pull request #774 from hyumo/main
Move sys._update_params(params) before TimeResponseData return when nstate == 0
2 parents f758725 + 8aa271d commit 61ef12b

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
@@ -1779,6 +1779,9 @@ def input_output_response(
17791779
else:
17801780
noutputs = sys.noutputs
17811781

1782+
# Update the parameter values
1783+
sys._update_params(params)
1784+
17821785
#
17831786
# Define a function to evaluate the input at an arbitrary time
17841787
#
@@ -1816,9 +1819,6 @@ def ufun(t):
18161819
output_labels=sys.output_index, input_labels=sys.input_index,
18171820
transpose=transpose, return_x=return_x, squeeze=squeeze)
18181821

1819-
# Update the parameter values
1820-
sys._update_params(params)
1821-
18221822
# Create a lambda function for the right hand side
18231823
def ivp_rhs(t, x):
18241824
return sys._rhs(t, x, ufun(t))

0 commit comments

Comments
 (0)
0