From 5fdbf75176480ffbc4eb81a20a1de5205c489efd Mon Sep 17 00:00:00 2001 From: Torkel Date: Tue, 19 Sep 2023 08:49:35 -0400 Subject: [PATCH] Gain 1 minute (cut unnecessary repeats) --- test/model_simulation/simulate_jumps.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/model_simulation/simulate_jumps.jl b/test/model_simulation/simulate_jumps.jl index b10727cc4b..a680ef44cb 100644 --- a/test/model_simulation/simulate_jumps.jl +++ b/test/model_simulation/simulate_jumps.jl @@ -93,8 +93,8 @@ let jumps_3 = (jump_3_1, jump_3_2, jump_3_3, jump_3_4, jump_3_5, jump_3_6) push!(identical_networks, reaction_networks_constraint[5] => jumps_3) - for (i, networks) in enumerate(identical_networks) - for factor in [1e-2, 1e-1, 1e0, 1e1], repeat in 1:3 + for networks in identical_networks + for factor in [1e-2, 1e-1, 1e0, 1e1] (i == 3) && (factor > 1e-1) && continue # Large numbers seems to crash it. u0 = rand(rng, 1:Int64(factor * 100), length(get_states(networks[1]))) p = factor * rand(rng, length(get_ps(networks[1]))) @@ -119,7 +119,7 @@ end let for (i, network) in enumerate(reaction_networks_all) - for factor in [1e-1, 1e0, 1e1] + for factor in [1e0] u0 = rand(rng, 1:Int64(factor * 100), length(get_states(network))) p = factor * rand(rng, length(get_ps(network))) prob = JumpProblem(network, DiscreteProblem(network, u0, (0.0, 1.0), p), @@ -134,7 +134,7 @@ end # No parameter test. let no_param_network = @reaction_network begin (1.2, 5), X1 ↔ X2 end - for factor in [1e1, 1e2] + for factor in [1e1] u0 = rand(rng, 1:Int64(factor * 100), length(get_states(no_param_network))) prob = JumpProblem(no_param_network, DiscreteProblem(no_param_network, u0, (0.0, 1000.0)), Direct())