Skip to content

Commit 2b24c04

Browse files
chore: copy parameters from sys
1 parent 3c1eac3 commit 2b24c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parameters.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function subset_tunables(sys, new_tunables)
172172
Note that array parameters can only be set as tunable or non-tunable, not partially tunable. They should be specified in the un-scalarized form.
173173
"""))
174174
end
175-
cur_ps = get_ps(sys)
175+
cur_ps = copy(get_ps(sys))
176176
const_ps = toconstant.(diff_params)
177177

178178
for (idx, p) in enumerate(cur_ps)

0 commit comments

Comments
 (0)