Skip to content

Commit 670c3aa

Browse files
committed
shorten ismassaction a bit
1 parent 4f38641 commit 670c3aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/reaction/reactionsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ end
143143
# if haveivdep=false then time dependent rates will still be classified as mass action
144144
function ismassaction(rx, rs; rxvars = get_variables(rx.rate),
145145
haveivdep = any(var -> isequal(rs.iv,convert(Variable,var)), rxvars))
146-
return !(haveivdep || rx.only_use_rate || any((isequal(state,convert(Variable,rxv)) for state in states(rs), rxv in rxvars)))
146+
return !(haveivdep || rx.only_use_rate || any(convert(Variable,rxv) in states(rs) for rxv in rxvars))
147147
end
148148

149149
function assemble_jumps(rs)

0 commit comments

Comments
 (0)