Skip to content

Commit

Permalink
complete reaction systems
Browse files Browse the repository at this point in the history
  • Loading branch information
paulflang committed Jul 13, 2024
1 parent 18ebab7 commit 5ee5179
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/systems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ function Catalyst.ReactionSystem(model::SBML.Model; kwargs...) # Todo: requires
defs = ModelingToolkit._merge(defs, kwargs[:defaults])
kwargs = filter(x -> !isequal(first(x), :defaults), kwargs)
end
ReactionSystem([rxs..., algrules..., raterules_subs..., obsrules_rearranged...],
rs = ReactionSystem([rxs..., algrules..., raterules_subs..., obsrules_rearranged...],
IV, first.(u0map), first.(parammap);
defaults = defs, name = gensym(:SBML),
continuous_events = get_events(model),
combinatoric_ratelaws = false, kwargs...)
return complete(rs) # Todo: maybe add a `complete=True` kwarg
end

"""
Expand Down

0 comments on commit 5ee5179

Please sign in to comment.