Skip to content

Commit 408bab0

Browse files
fix: fix missing unwrap in build_explicit_observed_function
1 parent 2b90f68 commit 408bab0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/systems/diffeqs/odesystem.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,14 +487,14 @@ function build_explicit_observed_function(sys, ts;
487487
end
488488
_ps = ps
489489
if ps isa Tuple
490-
ps = DestructuredArgs.(ps, inbounds = !checkbounds)
490+
ps = DestructuredArgs.(unwrap.(ps), inbounds = !checkbounds)
491491
elseif has_index_cache(sys) && get_index_cache(sys) !== nothing
492-
ps = DestructuredArgs.(reorder_parameters(get_index_cache(sys), ps))
492+
ps = DestructuredArgs.(reorder_parameters(get_index_cache(sys), unwrap.(ps)))
493493
if isempty(ps) && inputs !== nothing
494494
ps = (:EMPTY,)
495495
end
496496
else
497-
ps = (DestructuredArgs(ps, inbounds = !checkbounds),)
497+
ps = (DestructuredArgs(unwrap.(ps), inbounds = !checkbounds),)
498498
end
499499
dvs = DestructuredArgs(unknowns(sys), inbounds = !checkbounds)
500500
if inputs === nothing

0 commit comments

Comments
 (0)