Skip to content

Commit a55f782

Browse files
committed
up
1 parent 90524ba commit a55f782

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/reaction.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,14 @@ encountered in:
368368
- Among potential noise scaling metadata.
369369
"""
370370
function ModelingToolkit.get_variables!(set, rx::Reaction)
371+
if isdefined(Main, :Infiltrator)
372+
Main.infiltrate(@__MODULE__, Base.@locals, @__FILE__, @__LINE__)
373+
end
371374
get_variables!(set, rx.rate)
372375
append!(set, rx.substrates)
373376
append!(set, rx.products)
374377
for stoichs in (rx.substoich, rx.prodstoich), stoich in stoichs
375-
get_variables!(set, stoich)
378+
(stoich isa BasicSymbolic) && get_variables!(set, stoich)
376379
end
377380
if has_noise_scaling(rx)
378381
get_variables!(set, get_noise_scaling(rx))

0 commit comments

Comments
 (0)