Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
TorkelE committed Nov 17, 2024
1 parent b61ce4a commit 3082692
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dsl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -783,9 +783,8 @@ function read_observed_options(options, species_n_vars_declared, ivs_sorted)
# For Observables that have already been declared using @species/@variables,
# or are interpolated, this parts should not be carried out.
if !((obs_name in species_n_vars_declared) || is_escaped_expr(obs_eq.args[2]))
# Adds a line to the `observed_vars` expression, setting the ivs for this observable.
# Cannot extract directly using e.g. "getfield.(dependants_structs, :reactant)" because
# then we get something like :([:X1, :X2]), rather than :([X1, X2]).
# Creates an expression which extracts the ivs of the species & variables the
# observable depends on, and splats them out in the correct order.
dep_var_expr = :(filter(!MT.isparameter,
Symbolics.get_variables($(obs_eq.args[3]))))
ivs_get_expr = :(unique(reduce(
Expand Down

0 comments on commit 3082692

Please sign in to comment.