Skip to content

Commit 32b0204

Browse files
committed
finish missing SDE test stuff
1 parent 5399592 commit 32b0204

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

test/network_analysis/conservation_laws.jl

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ end
285285
# values. If it has been explicitly udpated, the corresponding elimianted quantity will have its
286286
# vaue updated to accomodate new Γ/species values (also, the elimianted species's value can not longer be changed).
287287
let
288-
# Prepares an `ODEProblem` with conserved quantities eliminated. Computes the conservation equation.
288+
# Prepares the problem inputs and computes the conservation equation.
289289
rn = @reaction_network begin
290290
(k1,k2), 2X1 <--> X2
291291
(k3,k4), X1 + X2 <--> X3
@@ -296,12 +296,9 @@ let
296296
conserved_quantity = conservationlaw_constants(rn)[1].rhs
297297

298298
# Loops through the tests for different problem types.
299-
oprob_old = ODEProblem(rn, u0, 1.0, ps; remove_conserved = true)
300-
sprob_old = SDEProblem(rn, u0, 1.0, ps; remove_conserved = true)
301-
302-
for prob in [oprob_old, sprob_old]
303-
prob_old = prob
304-
299+
oprob = ODEProblem(rn, u0, 1.0, ps; remove_conserved = true)
300+
sprob = SDEProblem(rn, u0, 1.0, ps; remove_conserved = true)
301+
for prob_old in [oprob, sprob]
305302
# For a couple of iterations, updates the problem, ensuring that when a species is updated:
306303
# - Only that species and the conservation constant have their values updated.
307304
# The `≈` is because sometimes the computed values will not be fully exact.

0 commit comments

Comments
 (0)