Skip to content

Commit 01fcab7

Browse files
committed
fix
1 parent bc93f41 commit 01fcab7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/reactionsystem.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ function make_ReactionSystem_internal(rxs_and_eqs::Vector, iv, us_in, ps_in; spa
740740

741741
# Filters away any potential obervables from `states` and `spcs`.
742742
obs_vars = [obs_eq.lhs for obs_eq in observed]
743-
unknowns = filter(u -> !any(isequal(u, obs_var) for obs_var in obs_vars), us_in)
743+
us_in = filter(u -> !any(isequal(u, obs_var) for obs_var in obs_vars), us_in)
744744

745745
# Creates a combined iv vector (iv and sivs). This is used later in the function (so that
746746
# independent variables can be exluded when encountered quantities are added to `us` and `ps`).
@@ -788,6 +788,10 @@ function make_ReactionSystem_internal(rxs_and_eqs::Vector, iv, us_in, ps_in; spa
788788
if !isempty(eqs)
789789
osys = ODESystem(eqs, iv; name = gensym())
790790
fulleqs = CatalystEqType[rxs; equations(osys)]
791+
println()
792+
println("start")
793+
println(us)
794+
println(unknowns(osys))
791795
union!(us, unknowns(osys))
792796
union!(ps, parameters(osys))
793797
else

0 commit comments

Comments
 (0)