Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
TorkelE committed Jun 6, 2024
1 parent 6dd9445 commit 6c79f3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reaction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6c79f3a

Please sign in to comment.