Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
TorkelE committed May 23, 2024
1 parent 90524ba commit a55f782
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/reaction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Check warning on line 372 in src/reaction.jl

View check run for this annotation

Codecov / codecov/patch

src/reaction.jl#L372

Added line #L372 was not covered by tests
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))
Expand Down

0 comments on commit a55f782

Please sign in to comment.