Skip to content

Commit 862278e

Browse files
committed
fix dep graph test by unwrapping Nums
1 parent 20206b6 commit 862278e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/systems/reaction/reactionsystem.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ end
190190

191191
function assemble_oderhs(rs; combinatoric_ratelaws=true)
192192
species_to_idx = Dict((x => i for (i,x) in enumerate(rs.states)))
193-
rhsvec = [Num(0) for i in eachindex(rs.states)]
193+
rhsvec = Any[0 for i in eachindex(rs.states)]
194+
194195
for rx in rs.eqs
195196
rl = oderatelaw(rx; combinatoric_ratelaw=combinatoric_ratelaws)
196197
for (spec,stoich) in rx.netstoich
@@ -214,7 +215,7 @@ function assemble_drift(rs; combinatoric_ratelaws=true, as_odes=true)
214215
D = Differential(rs.iv)
215216
eqs = [Equation(D(x),rhs) for (x,rhs) in zip(rs.states,rhsvec)]
216217
else
217-
eqs = [Equation(Num(0),rhs) for rhs in rhsvec]
218+
eqs = [Equation(0,rhs) for rhs in rhsvec]
218219
end
219220
eqs
220221
end

0 commit comments

Comments
 (0)