Skip to content

Commit 240809d

Browse files
Merge pull request #1278 from isaacsas/make-modified-states-returntype-consistent
Make the return behavior of modified_states consistent
2 parents 26b15c0 + ad282a7 commit 240809d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/systems/jumps/jumpsystem.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,14 @@ function modified_states!(mstates, jump::Union{ConstantRateJump,VariableRateJump
327327
st = eq.lhs
328328
any(isequal(st), sts) && push!(mstates, st)
329329
end
330+
mstates
330331
end
331332

332333
function modified_states!(mstates, jump::MassActionJump, sts)
333334
for (state,stoich) in jump.net_stoch
334335
any(isequal(state), sts) && push!(mstates, state)
335336
end
337+
mstates
336338
end
337339

338340

0 commit comments

Comments
 (0)