Skip to content

Commit

Permalink
Merge pull request #2684 from SciML/myb/fix3
Browse files Browse the repository at this point in the history
We need to unwrap guesses
  • Loading branch information
ChrisRackauckas authored May 1, 2024
2 parents a119d82 + ad51d17 commit 90a6ff4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/systems/diffeqs/odesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ function ODESystem(deqs::AbstractVector{<:Equation}, iv, dvs, ps;
var_guesses = dvs′[hasaguess] .=> sysguesses[hasaguess]
sysguesses = isempty(var_guesses) ? Dict() : todict(var_guesses)
guesses = merge(sysguesses, todict(guesses))
guesses = Dict{Any, Any}(value(k) => value(v) for (k, v) in pairs(guesses))

isempty(observed) || collect_var_to_name!(var_to_name, (eq.lhs for eq in observed))

Expand Down

0 comments on commit 90a6ff4

Please sign in to comment.