Skip to content

Commit ed012fa

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

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
@@ -404,10 +404,10 @@ function build_explicit_observed_function(sys, ts;
404404
Set(arguments(st)[1] for st in sts if istree(st) && operation(st) === getindex))
405405

406406
observed_idx = Dict(x.lhs => i for (i, x) in enumerate(obs))
407-
param_set = Set(parameters(sys))
407+
param_set = Set(full_parameters(sys))
408408
param_set = union(param_set,
409409
Set(arguments(p)[1] for p in param_set if istree(p) && operation(p) === getindex))
410-
param_set_ns = Set(unknowns(sys, p) for p in parameters(sys))
410+
param_set_ns = Set(unknowns(sys, p) for p in full_parameters(sys))
411411
param_set_ns = union(param_set_ns,
412412
Set(arguments(p)[1]
413413
for p in param_set_ns if istree(p) && operation(p) === getindex))

0 commit comments

Comments
 (0)