Skip to content

Commit

Permalink
Merge pull request #128 from SciML/pl/format
Browse files Browse the repository at this point in the history
format
  • Loading branch information
paulflang authored Apr 27, 2023
2 parents 3023a88 + 48719b6 commit 903ec91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/reactions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/reactions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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]),
Expand Down

0 comments on commit 903ec91

Please sign in to comment.