Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
vyudu committed Sep 6, 2024
1 parent bc4e620 commit 3f2a9a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/dsl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ function read_equations_options(options, variables_declared)
# When this is the case, the variable X and differential D are extracted (for automatic declaration).
# Also performs simple error checks.
vars_extracted = Vector{Symbol}()
add_default_diff = true
add_default_diff = false
for eq in equations
if (eq.head != :call) || (eq.args[1] != :~)
error("Malformed equation: \"$eq\". Equation's left hand and right hand sides should be separated by a \"~\".")
Expand Down
10 changes: 0 additions & 10 deletions test/dsl/dsl_options.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,6 @@ let
@test equations(rn4)[1] isa Equation
@parameters v n
@test isequal(Catalyst.expand_registered_functions(equations(rn4)[1]), D(A) ~ v*(A^n))


rn5 = @reaction_network begin
@species A(t) B(t)
@equations D(A) + D(B) ~ f(A, t)
end
@test length(equations(rn5)) == 1
@test equations(rn5)[1] isa Equation
@species B(t)
@test isequal(equations(rn5)[1], D(A) + D(B) ~ 2*A*t)
end

# Test inferring with stoichiometry symbols and interpolation.
Expand Down
12 changes: 6 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ using SafeTestsets, Test
@time begin

# Tests the `ReactionSystem` structure and its properties.
@time @safetestset "Reaction Structure" begin include("reactionsystem_core/reaction.jl") end
@time @safetestset "ReactionSystem Structure" begin include("reactionsystem_core/reactionsystem.jl") end
@time @safetestset "Higher Order Reactions" begin include("reactionsystem_core/higher_order_reactions.jl") end
@time @safetestset "Symbolic Stoichiometry" begin include("reactionsystem_core/symbolic_stoichiometry.jl") end
@time @safetestset "Parameter Type Designation" begin include("reactionsystem_core/parameter_type_designation.jl") end
@time @safetestset "Custom CRN Functions" begin include("reactionsystem_core/custom_crn_functions.jl") end
# @time @safetestset "Reaction Structure" begin include("reactionsystem_core/reaction.jl") end
# @time @safetestset "ReactionSystem Structure" begin include("reactionsystem_core/reactionsystem.jl") end
# @time @safetestset "Higher Order Reactions" begin include("reactionsystem_core/higher_order_reactions.jl") end
# @time @safetestset "Symbolic Stoichiometry" begin include("reactionsystem_core/symbolic_stoichiometry.jl") end
# @time @safetestset "Parameter Type Designation" begin include("reactionsystem_core/parameter_type_designation.jl") end
# @time @safetestset "Custom CRN Functions" begin include("reactionsystem_core/custom_crn_functions.jl") end
@time @safetestset "Coupled CRN/Equation Systems" begin include("reactionsystem_core/coupled_equation_crn_systems.jl") end
@time @safetestset "Events" begin include("reactionsystem_core/events.jl") end

Expand Down

0 comments on commit 3f2a9a9

Please sign in to comment.