Skip to content

Commit 3267ca7

Browse files
committed
drop var2op
1 parent 6f84bde commit 3267ca7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/systems/reaction/reactionsystem.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,6 @@ function assemble_diffusion(rs, noise_scaling; combinatoric_ratelaws=true)
235235
eqs
236236
end
237237

238-
function var2op(var)
239-
Sym{symtype(var)}(nameof(var.op))
240-
end
241-
function var2op(var::Sym)
242-
var
243-
end
244-
245238
# Calculate the Jump rate law (like ODE, but uses X instead of X(t).
246239
# The former generates a "MethodError: objects of type Int64 are not callable" when trying to solve the problem.
247240
"""
@@ -272,7 +265,6 @@ Notes:
272265
function jumpratelaw(rx; rxvars=get_variables(rx.rate), combinatoric_ratelaw=true)
273266
@unpack rate, substrates, substoich, only_use_rate = rx
274267
rl = rate
275-
#rl = substitute(rl, Dict(rxvars .=> var2op.(rxvars)))
276268
if !only_use_rate
277269
coef = one(eltype(substoich))
278270
for (i,stoich) in enumerate(substoich)

0 commit comments

Comments
 (0)