Skip to content

Commit

Permalink
include noise scaling metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsas committed Oct 16, 2024
1 parent f92e7a2 commit f13bf2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/reactionsystem_core/reaction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ let
t = default_t()
@variables E(t) F(t)
@species A(t) B(t) C(t) D(t)
@parameters k1, k2
@parameters k1, k2, η

rx = Reaction(k1*E, [A, B], [C], [k2*D, 3], [F])
rx = Reaction(k1*E, [A, B], [C], [k2*D, 3], [F], metadata = [:noise_scaling => η])
us = Set()
ps = Set()
@test eqtype_supports_collect_vars(rx) == true
collect_vars!(us, ps, rx, t)
@test us == Set((A, B, C, D, E, F))
@test ps == Set((k1, k2))
@test ps == Set((k1, k2, η))
end

0 comments on commit f13bf2e

Please sign in to comment.