From a55f782095cdbbdbf1552f2a2e8b53eed8a5be2e Mon Sep 17 00:00:00 2001 From: Torkel Date: Thu, 23 May 2024 13:13:11 -0400 Subject: [PATCH] up --- src/reaction.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/reaction.jl b/src/reaction.jl index 6e4d9e105e..e1bb68c3ff 100644 --- a/src/reaction.jl +++ b/src/reaction.jl @@ -368,11 +368,14 @@ encountered in: - Among potential noise scaling metadata. """ function ModelingToolkit.get_variables!(set, rx::Reaction) + if isdefined(Main, :Infiltrator) + Main.infiltrate(@__MODULE__, Base.@locals, @__FILE__, @__LINE__) + end get_variables!(set, rx.rate) append!(set, rx.substrates) append!(set, rx.products) for stoichs in (rx.substoich, rx.prodstoich), stoich in stoichs - get_variables!(set, stoich) + (stoich isa BasicSymbolic) && get_variables!(set, stoich) end if has_noise_scaling(rx) get_variables!(set, get_noise_scaling(rx))