Skip to content

Commit 816bf96

Browse files
committed
add comment about weird formatting
1 parent cf06b22 commit 816bf96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/spatial_reaction_systems/spatial_reactions.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,14 @@ function check_spatial_reaction_validity(rs::ReactionSystem, tr::TransportReacti
9696
if any(isequal(tr.species, s) && !isequivalent(tr.species, s) for s in species(rs))
9797
error("A transport reaction used a species, $(tr.species), with metadata not matching its lattice reaction system. Please fetch this species from the reaction system and used in transport reaction creation.")
9898
end
99+
# No `for` loop, just weird formatting by the formatter.
99100
if any(isequal(rs_p, tr_p) && !isequivalent(rs_p, tr_p)
100-
for rs_p in parameters(rs), tr_p in Symbolics.get_variables(tr.rate))
101+
for rs_p in parameters(rs), tr_p in Symbolics.get_variables(tr.rate))
101102
error("A transport reaction used a parameter with metadata not matching its lattice reaction system. Please fetch this parameter from the reaction system and used in transport reaction creation.")
102103
end
103104

104105
# Checks that no edge parameter occur among rates of non-spatial reactions.
106+
# No `for` loop, just weird formatting by the formatter.
105107
if any(!isempty(intersect(Symbolics.get_variables(r.rate), edge_parameters))
106108
for r in reactions(rs))
107109
error("Edge parameter(s) were found as a rate of a non-spatial reaction.")

0 commit comments

Comments
 (0)