Skip to content

Commit 172a9a9

Browse files
AayushSabharwalBenChung
authored andcommitted
fix: fix missing unwrap in build_explicit_observed_function
1 parent b8ec56d commit 172a9a9

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
@@ -512,14 +512,14 @@ function build_explicit_observed_function(sys, ts;
512512
end
513513
_ps = ps
514514
if ps isa Tuple
515-
ps = DestructuredArgs.(ps, inbounds = !checkbounds)
515+
ps = DestructuredArgs.(unwrap.(ps), inbounds = !checkbounds)
516516
elseif has_index_cache(sys) && get_index_cache(sys) !== nothing
517-
ps = DestructuredArgs.(reorder_parameters(get_index_cache(sys), ps))
517+
ps = DestructuredArgs.(reorder_parameters(get_index_cache(sys), unwrap.(ps)))
518518
if isempty(ps) && inputs !== nothing
519519
ps = (:EMPTY,)
520520
end
521521
else
522-
ps = (DestructuredArgs(ps, inbounds = !checkbounds),)
522+
ps = (DestructuredArgs(unwrap.(ps), inbounds = !checkbounds),)
523523
end
524524
dvs = DestructuredArgs(unknowns(sys), inbounds = !checkbounds)
525525
if inputs === nothing

0 commit comments

Comments
 (0)