@@ -557,11 +557,6 @@ struct ReactionSystem{V <: NetworkProperties} <:
557
557
(p isa Symbolics. BasicSymbolic) || error (" Parameter $p is not a `BasicSymbolic`. This is required." )
558
558
end
559
559
560
- # Filters away any potential obervables from `states` and `spcs`.
561
- obs_vars = [obs_eq. lhs for obs_eq in observed]
562
- unknowns = filter (state -> ! any (isequal (state, obs_var) for obs_var in obs_vars), unknowns)
563
- spcs = filter (spc -> ! any (isequal (spc, obs_var) for obs_var in obs_vars), spcs)
564
-
565
560
# unit checks are for ODEs and Reactions only currently
566
561
nonrx_eqs = Equation[eq for eq in eqs if eq isa Equation]
567
562
if checks && isempty (sivs)
741
736
# While species are ordered before variables in the unknowns vector, this ordering is not imposed here,
742
737
# but carried out at a later stage.
743
738
function make_ReactionSystem_internal (rxs_and_eqs:: Vector , iv, us_in, ps_in; spatial_ivs = nothing ,
744
- continuous_events = [], discrete_events = [], kwargs... )
739
+ continuous_events = [], discrete_events = [], observed = [], kwargs... )
745
740
741
+ # Filters away any potential obervables from `states` and `spcs`.
742
+ 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)
744
+
746
745
# Creates a combined iv vector (iv and sivs). This is used later in the function (so that
747
746
# independent variables can be exluded when encountered quantities are added to `us` and `ps`).
748
747
t = value (iv)
0 commit comments