Skip to content

Commit 27c8856

Browse files
committed
reshuffle
1 parent 1f29769 commit 27c8856

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/reactionsystem_conversions.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,16 @@ function Base.convert(::Type{<:SDESystem}, rs::ReactionSystem;
651651
kwargs...)
652652
end
653653

654+
function merge_physical_scales(rxs, physical_scales)
655+
scales = get_physical_scale.(rxs)
656+
if physical_scales !== nothing
657+
for (idx, scale) in physical_scales
658+
scales[idx] = scale
659+
end
660+
end
661+
scales
662+
end
663+
654664
"""
655665
```julia
656666
Base.convert(::Type{<:JumpSystem},rs::ReactionSystem; combinatoric_ratelaws=true)
@@ -767,16 +777,6 @@ function DiffEqBase.SDEProblem(rs::ReactionSystem, u0, tspan,
767777
noise_rate_prototype = p_matrix, kwargs...)
768778
end
769779

770-
function merge_physical_scales(rxs, physical_scales)
771-
scales = get_physical_scale.(rxs)
772-
if physical_scales !== nothing
773-
for (idx, scale) in physical_scales
774-
scales[idx] = scale
775-
end
776-
end
777-
scales
778-
end
779-
780780
"""
781781
$(TYPEDEF)
782782

0 commit comments

Comments
 (0)