Skip to content

Commit

Permalink
fix: handle missing in InitializationProblem
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Sep 26, 2024
1 parent aef01dc commit 1a03b5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/systems/diffeqs/abstractodesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,7 @@ function InitializationProblem{iip, specialize}(sys::AbstractODESystem,
parammap = parammap isa DiffEqBase.NullParameters || isempty(parammap) ?
[get_iv(sys) => t] :
merge(todict(parammap), Dict(get_iv(sys) => t))
parammap = Dict(k => v for (k, v) in parammap if v !== missing)
if isempty(u0map)
u0map = Dict()
end
Expand Down

0 comments on commit 1a03b5a

Please sign in to comment.