diff --git a/src/reactions.jl b/src/reactions.jl index 64765ee..b404987 100644 --- a/src/reactions.jl +++ b/src/reactions.jl @@ -162,7 +162,6 @@ Get rate constant of mass action kineticLaws """ function get_massaction(kl::Num, reactants::Union{Vector{Num}, Nothing}, stoich::Union{Vector{<:Real}, Nothing}) - function check_args(x::SymbolicUtils.BasicSymbolic{Real}) check_args(Val(SymbolicUtils.istree(x)), x) end diff --git a/test/reactions.jl b/test/reactions.jl index ae8b329..41b64a2 100644 --- a/test/reactions.jl +++ b/test/reactions.jl @@ -105,9 +105,9 @@ m = SBML.Model(species = Dict("s" => s), reactions = Dict("r1" => r)) SBMLToolkit.get_reagents(r.reactants, r.products, m)) @test isequal((nothing, nothing, nothing, nothing), SBMLToolkit.get_reagents(r.products, r.reactants, m)) - + r = SBML.Reaction(reactants = [SBML.SpeciesReference(species = "s", stoichiometry = 1.0), - SBML.SpeciesReference(species = "s", stoichiometry = 1.0)], + SBML.SpeciesReference(species = "s", stoichiometry = 1.0)], reversible = false) m = SBML.Model(species = Dict("s" => s), reactions = Dict("r1" => r)) @test isequal(([var], [var], [2.0], [2.0]),