diff --git a/src/qssa_general_rate_equation_derivation.jl b/src/qssa_general_rate_equation_derivation.jl index ea50d56..5d0ba85 100644 --- a/src/qssa_general_rate_equation_derivation.jl +++ b/src/qssa_general_rate_equation_derivation.jl @@ -2787,14 +2787,18 @@ end Keq, ) Vmax = 1.0 - Vmax_rev = + Vmax_rev = ifelse( + !isinf(product_K_products), Vmax * (product_K_products)^num_products / - (Keq * (product_K_substrates)^num_substrates) + (Keq * (product_K_substrates)^num_substrates), + 0.0, + ) Rate = ( Vmax * (S1 * S2 * S3 / (product_K_substrates)^num_substrates) - Vmax_rev * (P1 * P2 * P3 / (product_K_products)^num_products) ) / Z + return Rate end diff --git a/test/runtests.jl b/test/runtests.jl index 05f3bb8..d7c4cbd 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -9,7 +9,7 @@ using SafeTestsets @safetestset "QSSA Rate Eq Derivation" begin include("tests_for_qssa_general_rate_eq_derivation.jl") end - @safetestset "MWC Rate Eq Fitting" begin + @safetestset "MWC and QSSA Rate Eq Fitting" begin include("tests_for_rate_eq_fitting.jl") end @safetestset "Plotting" begin