Skip to content

Commit 3339534

Browse files
committed
map to []
1 parent 670c3aa commit 3339534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/reaction/reactionsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function assemble_jumps(rs)
154154
haveivdep = any(var -> isequal(rs.iv,convert(Variable,var)), rxvars)
155155
if ismassaction(rx, rs; rxvars=rxvars, haveivdep=haveivdep)
156156
reactant_stoch = isempty(rx.substoich) ? [0 => 1] : [var2op(sub.op) => stoich for (sub,stoich) in zip(rx.substrates,rx.substoich)]
157-
net_stoch = map(p -> Pair(var2op(p[1]),p[2]), rx.netstoich)
157+
net_stoch = [Pair(var2op(p[1]),p[2]) for p in rx.netstoich]
158158
push!(eqs, MassActionJump(rx.rate, reactant_stoch, net_stoch))
159159
else
160160
rl = jumpratelaw(rx, rxvars=rxvars)

0 commit comments

Comments
 (0)