Skip to content

Commit 6083e1d

Browse files
committed
don't call get_variables on non-Operations for jumps
1 parent f5b6baa commit 6083e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/jumps/jumpsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ end
259259
get_variables!(dep, jump::Union{ConstantRateJump,VariableRateJump}, variables) = get_variables!(dep, jump.rate, variables)
260260

261261
function get_variables!(dep, jump::MassActionJump, variables)
262-
get_variables!(dep, jump.scaled_rates, variables)
262+
!(jump.scaled_rates isa Number) && get_variables!(dep, jump.scaled_rates, variables)
263263
for varasop in jump.reactant_stoch
264264
(varasop[1].op in variables) && push!(dep, varasop[1])
265265
end

0 commit comments

Comments
 (0)