Skip to content

Commit c83c44c

Browse files
TorkelEisaacsas
andauthored
Update src/reaction_network.jl
Co-authored-by: Sam Isaacson <[email protected]>
1 parent 56b265e commit c83c44c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reaction_network.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ function push_reactions!(reactions::Vector{ReactionStruct}, sub_line::ExprValues
643643
# The rates, substrates, products, and metadata may be in a tupple form (e.g. `k, (X,Y) --> 0`).
644644
# This finds the length of these tuples (or 1 if not in tuple forms). Errors if lengs inconsistent.
645645
lengs = (tup_leng(sub_line), tup_leng(prod_line), tup_leng(rate), tup_leng(metadata))
646-
if any(!(leng in [1, maximum(lengs)]) for leng in lengs)
646+
if any(!(leng == 1 || leng == maximum(lengs)) for leng in lengs)
647647
throw("Malformed reaction, rate=$rate, subs=$sub_line, prods=$prod_line, metadata=$metadata.")
648648
end
649649

0 commit comments

Comments
 (0)