From 6c79f3a5e0064a561730e98865b1a89a25d1c784 Mon Sep 17 00:00:00 2001 From: Torkel Date: Thu, 6 Jun 2024 16:28:18 -0400 Subject: [PATCH] up --- src/reaction.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reaction.jl b/src/reaction.jl index 701bbfebab..6120072f9f 100644 --- a/src/reaction.jl +++ b/src/reaction.jl @@ -183,8 +183,8 @@ function Reaction(rate, subs::Vector{Q}, prods::Vector{R}, substoich::Vector{S}, # Ensures everything have uniform and correct types. reactant_type = promote_type(Q, R) (reactant_type <: Num) && (reactant_type = Any) - subs = promote_reaction_vector(subs, BasicSymbolic{Real}) - prods = promote_reaction_vector(prods, BasicSymbolic{Real}) + (Q <: Num) && (subs = promote_reaction_vector(subs, BasicSymbolic{Real})) + (R <: Num) && (prods = promote_reaction_vector(prods, BasicSymbolic{Real})) stoich_type = promote_type(S, T) (stoich_type <: Num) && (stoich_type = Any) substoich = promote_reaction_vector(substoich, stoich_type)