Skip to content

Commit

Permalink
test up
Browse files Browse the repository at this point in the history
  • Loading branch information
TorkelE committed Feb 1, 2024
1 parent a792784 commit 9f63d30
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,17 @@ let
jprob = JumpProblem(lrs, dprob, NSM())
@test jprob.prob.u0 == true_u0
@test jprob.discrete_jump_aggregation.hop_rates.hop_const_cumulative_sums == true_hopping_rates
@test jprob.massaction_jump.scaled_rates == true_maj_scaled_rates
@test jprob.massaction_jump.reactant_stoch == true_maj_reactant_stoch
@test jprob.massaction_jump.net_stoch == true_maj_net_stoch
@test all(issetequal(ns1, ns2) for (ns1, ns2) in zip(jprob.massaction_jump.net_stoch, true_maj_net_stoch))
end
# Provides parameters as a combined vector.
for pV in [pV_1], pE in [pE_1, pE_2]
dprob = DiscreteProblem(lrs, u0, (0.0, 100.0), [pE; pV])
jprob = JumpProblem(lrs, dprob, NSM())
@test jprob.prob.u0 == true_u0
@test jprob.discrete_jump_aggregation.hop_rates.hop_const_cumulative_sums == true_hopping_rates
@test jprob.massaction_jump.scaled_rates == true_maj_scaled_rates
@test jprob.massaction_jump.reactant_stoch == true_maj_reactant_stoch
@test jprob.massaction_jump.net_stoch == true_maj_net_stoch
@test all(issetequal(ns1, ns2) for (ns1, ns2) in zip(jprob.massaction_jump.net_stoch, true_maj_net_stoch))
end
end
end
Expand Down

0 comments on commit 9f63d30

Please sign in to comment.