Skip to content

Commit 4aabab0

Browse files
committed
fix: use full_parameters in build_explicit_observed_function
This makes dependent parameters available in the observed functions.
1 parent b77d998 commit 4aabab0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/diffeqs/odesystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,10 @@ function build_explicit_observed_function(sys, ts;
405405
Set(arguments(st)[1] for st in sts if istree(st) && operation(st) === getindex))
406406

407407
observed_idx = Dict(x.lhs => i for (i, x) in enumerate(obs))
408-
param_set = Set(parameters(sys))
408+
param_set = Set(full_parameters(sys))
409409
param_set = union(param_set,
410410
Set(arguments(p)[1] for p in param_set if istree(p) && operation(p) === getindex))
411-
param_set_ns = Set(unknowns(sys, p) for p in parameters(sys))
411+
param_set_ns = Set(unknowns(sys, p) for p in full_parameters(sys))
412412
param_set_ns = union(param_set_ns,
413413
Set(arguments(p)[1]
414414
for p in param_set_ns if istree(p) && operation(p) === getindex))

0 commit comments

Comments
 (0)