Skip to content

Commit 58d8093

Browse files
committed
more converts
1 parent 9a1c773 commit 58d8093

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/systems/reaction/reactionsystem.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ function Base.convert(::Type{<:NonlinearSystem},rs::ReactionSystem;
428428
name=nameof(rs), combinatoric_ratelaws=true, kwargs...)
429429
eqs = assemble_drift(rs; combinatoric_ratelaws=combinatoric_ratelaws, as_odes=false)
430430
systems = convert.(NonlinearSystem, get_systems(rs))
431-
NonlinearSystem(eqs, get_states(rs), get_ps(rs), name=name, systems=systems)
431+
NonlinearSystem(eqs, get_states(rs), get_ps(rs); name=name, systems=systems, kwargs...)
432432
end
433433

434434
"""
@@ -469,9 +469,10 @@ function Base.convert(::Type{<:SDESystem}, rs::ReactionSystem;
469469
combinatoric_ratelaws=combinatoric_ratelaws)
470470
systems = convert.(SDESystem, get_systems(rs))
471471
SDESystem(eqs, noiseeqs, get_iv(rs), get_states(rs),
472-
(noise_scaling===nothing) ? get_ps(rs) : union(get_ps(rs), toparam.(noise_scaling)),
472+
(noise_scaling===nothing) ? get_ps(rs) : union(get_ps(rs), toparam.(noise_scaling));
473473
name=name,
474-
systems=systems)
474+
systems=systems,
475+
kwargs...)
475476
end
476477

477478
"""
@@ -491,7 +492,7 @@ function Base.convert(::Type{<:JumpSystem},rs::ReactionSystem;
491492
name=nameof(rs), combinatoric_ratelaws=true, kwargs...)
492493
eqs = assemble_jumps(rs; combinatoric_ratelaws=combinatoric_ratelaws)
493494
systems = convert.(JumpSystem, get_systems(rs))
494-
JumpSystem(eqs, get_iv(rs), get_states(rs), get_ps(rs), name=name, systems=systems)
495+
JumpSystem(eqs, get_iv(rs), get_states(rs), get_ps(rs); name=name, systems=systems, kwargs...)
495496
end
496497

497498

0 commit comments

Comments
 (0)