Skip to content

Commit 734756d

Browse files
committed
minor bugfix
1 parent fc4d387 commit 734756d

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/dsl.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function make_reaction_system(ex::Expr; name = :(gensym(:ReactionSystem)))
371371

372372
# Reads observables.
373373
observed_vars, observed_eqs, obs_syms = read_observed_options(
374-
options, [species_declared; variables], all_ivs)
374+
options, [species_declared; variables], all_ivs; requiredec)
375375

376376
# Checks for input errors.
377377
(sum(length.([reaction_lines, option_lines])) != length(ex.args)) &&
@@ -726,7 +726,7 @@ function read_equations_options(options, syms_declared; requiredec = false)
726726

727727
# If the default differential (`D`) is used, record that it should be decalred later on.
728728

729-
if !in(eq, excluded_syms) && find_D_call(eq)
729+
if !in(eq, syms_declared) && find_D_call(eq)
730730
requiredec && throw(UndeclaredSymbolicError(
731731
"Unrecognized symbol D was used as a differential in an equation: \"$eq\". Since the @require_declaration flag is set, all differentials in equations must be explicitly declared using the @differentials option."))
732732
add_default_diff = true

test/runtests.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ end
1515
### Run Tests ###
1616
@time begin
1717
if GROUP == "All" || GROUP == "Core"
18-
# Tests the `ReactionSystem` structure and its properties.
19-
@time @safetestset "Reaction Structure" begin include("reactionsystem_core/reaction.jl") end
20-
@time @safetestset "ReactionSystem Structure" begin include("reactionsystem_core/reactionsystem.jl") end
21-
@time @safetestset "Higher Order Reactions" begin include("reactionsystem_core/higher_order_reactions.jl") end
22-
@time @safetestset "Symbolic Stoichiometry" begin include("reactionsystem_core/symbolic_stoichiometry.jl") end
23-
@time @safetestset "Parameter Type Designation" begin include("reactionsystem_core/parameter_type_designation.jl") end
24-
@time @safetestset "Custom CRN Functions" begin include("reactionsystem_core/custom_crn_functions.jl") end
2518
@time @safetestset "Coupled CRN/Equation Systems" begin include("reactionsystem_core/coupled_equation_crn_systems.jl") end
2619
@time @safetestset "Events" begin include("reactionsystem_core/events.jl") end
2720

0 commit comments

Comments
 (0)