Skip to content

Commit

Permalink
rebase fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TorkelE committed May 23, 2024
1 parent a55f782 commit 8bca45b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reaction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -372,15 +372,15 @@ function ModelingToolkit.get_variables!(set, rx::Reaction)
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)
foreach(sub -> push!(set, sub), rx.substrates)
foreach(prod -> push!(set, prod), rx.products)
for stoichs in (rx.substoich, rx.prodstoich), stoich in stoichs
(stoich isa BasicSymbolic) && get_variables!(set, stoich)
end
if has_noise_scaling(rx)
get_variables!(set, get_noise_scaling(rx))
end
return unique!(set)
return (set isa AbstractVector) ? unique!(set) : set
end

### Dependency-related Functions ###
Expand Down

0 comments on commit 8bca45b

Please sign in to comment.