Skip to content

Commit b7f023c

Browse files
committed
change parallelisation implementation, remove version 14 test designatio
1 parent f34d63e commit b7f023c

File tree

3 files changed

+43
-70
lines changed

3 files changed

+43
-70
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ on:
33
pull_request:
44
branches:
55
- master
6-
- Catalyst_version_14
76
push:
87
branches:
98
- master
10-
- Catalyst_version_14
119
jobs:
1210
test:
1311
runs-on: ubuntu-latest

test/reactionsystem_core/reactionsystem_structure.jl

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -747,14 +747,9 @@ end
747747

748748
# Tests construction of empty reaction networks.
749749
let
750-
function unpacksys(sys)
751-
get_eqs(sys), get_iv(sys), get_unknowns(sys), get_ps(sys), nameof(sys), get_systems(sys)
752-
end
753-
754-
empty_network_1 = @reaction_network
755-
eqs, iv, ps, name, systems = unpacksys(empty_network_1)
756-
@test length(eqs) == 0
757-
@test nameof(iv) == :t
758-
@test length(get_unknowns(empty_network_1)) == 0
759-
@test length(ps) == 0
750+
empty_network = @reaction_network
751+
@test length(equations(empty_network)) == 0
752+
@test nameof(independent_variable(empty_network)) == :t
753+
@test length(unknowns(empty_network)) == 0
754+
@test length(parameters(empty_network)) == 0
760755
end

test/runtests.jl

Lines changed: 38 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -12,88 +12,68 @@ const GROUP = get(ENV, "GROUP", "All")
1212

1313
if GROUP == "All" || GROUP == "ModelCreation"
1414
# Tests the `ReactionSystem` structure and its properties.
15-
@testset "ReactionSystem" begin
16-
@time @safetestset "Reaction Structure" begin include("reactionsystem_core/reaction_structure.jl") end
17-
@time @safetestset "ReactionSystem Structure" begin include("reactionsystem_core/reactionsystem_structure.jl") end
18-
@time @safetestset "Higher Order Reactions" begin include("reactionsystem_core/higher_order_reactions.jl") end
19-
@time @safetestset "Symbolic Stoichiometry" begin include("reactionsystem_core/symbolic_stoichiometry.jl") end
20-
@time @safetestset "Parameter Type Designation" begin include("reactionsystem_core/parameter_type_designation.jl") end
21-
@time @safetestset "Custom CRN Functions" begin include("reactionsystem_core/custom_crn_functions.jl") end
22-
# @time @safetestset "Coupled CRN/Equation Systems" begin include("reactionsystem_core/coupled_equation_crn_systems.jl") end
23-
@time @safetestset "Events" begin include("reactionsystem_core/events.jl") end
24-
end
25-
15+
@time @safetestset "Reaction Structure" begin include("reactionsystem_core/reaction_structure.jl") end
16+
@time @safetestset "ReactionSystem Structure" begin include("reactionsystem_core/reactionsystem_structure.jl") end
17+
@time @safetestset "Higher Order Reactions" begin include("reactionsystem_core/higher_order_reactions.jl") end
18+
@time @safetestset "Symbolic Stoichiometry" begin include("reactionsystem_core/symbolic_stoichiometry.jl") end
19+
@time @safetestset "Parameter Type Designation" begin include("reactionsystem_core/parameter_type_designation.jl") end
20+
@time @safetestset "Custom CRN Functions" begin include("reactionsystem_core/custom_crn_functions.jl") end
21+
# @time @safetestset "Coupled CRN/Equation Systems" begin include("reactionsystem_core/coupled_equation_crn_systems.jl") end
22+
@time @safetestset "Events" begin include("reactionsystem_core/events.jl") end
23+
2624
# Tests model creation via the @reaction_network DSL.
27-
@testset "DSL" begin
28-
@time @safetestset "DSL Basic Model Construction" begin include("dsl/dsl_basic_model_construction.jl") end
29-
@time @safetestset "DSL Advanced Model Construction" begin include("dsl/dsl_advanced_model_construction.jl") end
30-
@time @safetestset "DSL Options" begin include("dsl/dsl_options.jl") end
31-
end
25+
@time @safetestset "DSL Basic Model Construction" begin include("dsl/dsl_basic_model_construction.jl") end
26+
@time @safetestset "DSL Advanced Model Construction" begin include("dsl/dsl_advanced_model_construction.jl") end
27+
@time @safetestset "DSL Options" begin include("dsl/dsl_options.jl") end
3228

3329
# Tests compositional and hierarchical modelling.
34-
@testset "CompositionalModelling" begin
35-
@time @safetestset "ReactionSystem Components Based Creation" begin include("compositional_modelling/component_based_model_creation.jl") end
36-
end
30+
@time @safetestset "ReactionSystem Components Based Creation" begin include("compositional_modelling/component_based_model_creation.jl") end
3731
end
3832

3933
if GROUP == "All" || GROUP == "Miscellaneous-NetworkAnalysis"
4034
# Tests various miscellaneous features.
41-
@testset "Miscellaneous" begin
42-
@time @safetestset "API" begin include("miscellaneous_tests/api.jl") end
43-
@time @safetestset "Compound Species" begin include("miscellaneous_tests/compound_macro.jl") end
44-
@time @safetestset "Reaction Balancing" begin include("miscellaneous_tests/reaction_balancing.jl") end
45-
@time @safetestset "Units" begin include("miscellaneous_tests/units.jl") end
46-
end
35+
@time @safetestset "API" begin include("miscellaneous_tests/api.jl") end
36+
@time @safetestset "Compound Species" begin include("miscellaneous_tests/compound_macro.jl") end
37+
@time @safetestset "Reaction Balancing" begin include("miscellaneous_tests/reaction_balancing.jl") end
38+
@time @safetestset "Units" begin include("miscellaneous_tests/units.jl") end
4739

4840
# Tests reaction network analysis features.
49-
@testset "NetworkAnalysis" begin
50-
@time @safetestset "Conservation Laws" begin include("network_analysis/conservation_laws.jl") end
51-
@time @safetestset "Network Properties" begin include("network_analysis/network_properties.jl") end
52-
end
41+
@time @safetestset "Conservation Laws" begin include("network_analysis/conservation_laws.jl") end
42+
@time @safetestset "Network Properties" begin include("network_analysis/network_properties.jl") end
5343
end
5444

55-
# Tests ODE, SDE, jump simulations, nonlinear solving, and steady state simulations.
5645
if GROUP == "All" || GROUP == "Simulation"
57-
@testset "Simulation" begin
58-
@time @safetestset "ODE System Simulations" begin include("simulation_and_solving/simulate_ODEs.jl") end
59-
@time @safetestset "Automatic Jacobian Construction" begin include("simulation_and_solving/jacobian_construction.jl") end
60-
@time @safetestset "SDE System Simulations" begin include("simulation_and_solving/simulate_SDEs.jl") end
61-
@time @safetestset "Jump System Simulations" begin include("simulation_and_solving/simulate_jumps.jl") end
62-
@time @safetestset "Nonlinear and SteadyState System Solving" begin include("simulation_and_solving/solve_nonlinear.jl") end
63-
end
46+
# Tests ODE, SDE, jump simulations, nonlinear solving, and steady state simulations.
47+
@time @safetestset "ODE System Simulations" begin include("simulation_and_solving/simulate_ODEs.jl") end
48+
@time @safetestset "Automatic Jacobian Construction" begin include("simulation_and_solving/jacobian_construction.jl") end
49+
@time @safetestset "SDE System Simulations" begin include("simulation_and_solving/simulate_SDEs.jl") end
50+
@time @safetestset "Jump System Simulations" begin include("simulation_and_solving/simulate_jumps.jl") end
51+
@time @safetestset "Nonlinear and SteadyState System Solving" begin include("simulation_and_solving/solve_nonlinear.jl") end
6452

6553
# Tests upstream SciML and DiffEq stuff.
66-
@testset "Upstream" begin
67-
@time @safetestset "MTK Structure Indexing" begin include("upstream/mtk_structure_indexing.jl") end
68-
@time @safetestset "MTK Problem Inputs" begin include("upstream/mtk_problem_inputs.jl") end
69-
end
54+
@time @safetestset "MTK Structure Indexing" begin include("upstream/mtk_structure_indexing.jl") end
55+
@time @safetestset "MTK Problem Inputs" begin include("upstream/mtk_problem_inputs.jl") end
7056
end
7157

72-
# Tests spatial modelling and simulations.
7358
if GROUP == "All" || GROUP == "Spatial"
74-
@testset "Spatial" begin
75-
@time @safetestset "PDE Systems Simulations" begin include("spatial_modelling/simulate_PDEs.jl") end
76-
@time @safetestset "Lattice Reaction Systems" begin include("spatial_modelling/lattice_reaction_systems.jl") end
77-
@time @safetestset "ODE Lattice Systems Simulations" begin include("spatial_modelling/lattice_reaction_systems_ODEs.jl") end
78-
end
59+
# Tests spatial modelling and simulations.
60+
@time @safetestset "PDE Systems Simulations" begin include("spatial_modelling/simulate_PDEs.jl") end
61+
@time @safetestset "Lattice Reaction Systems" begin include("spatial_modelling/lattice_reaction_systems.jl") end
62+
@time @safetestset "ODE Lattice Systems Simulations" begin include("spatial_modelling/lattice_reaction_systems_ODEs.jl") end
7963
end
8064

8165
if GROUP == "All" || GROUP == "Visualisation-Extensions"
8266
# Tests network visualisation.
83-
@testset "Visualisation" begin
84-
@time @safetestset "Latexify" begin include("visualisation/latexify.jl") end
85-
# Disable on Macs as can't install GraphViz via jll
86-
if !Sys.isapple()
87-
@time @safetestset "Graphs Visualisations" begin include("visualisation/graphs.jl") end
88-
end
67+
@time @safetestset "Latexify" begin include("visualisation/latexify.jl") end
68+
# Disable on Macs as can't install GraphViz via jll
69+
if !Sys.isapple()
70+
@time @safetestset "Graphs Visualisations" begin include("visualisation/graphs.jl") end
8971
end
9072

9173
# Tests extensions.
92-
@testset "Extensions" begin
93-
# @time @safetestset "BifurcationKit Extension" begin include("extensions/bifurcation_kit.jl") end
94-
# @time @safetestset "HomotopyContinuation Extension" begin include("extensions/homotopy_continuation.jl") end
95-
# @time @safetestset "Structural Identifiability Extension" begin include("extensions/structural_identifiability.jl") end
96-
end
74+
# @time @safetestset "BifurcationKit Extension" begin include("extensions/bifurcation_kit.jl") end
75+
# @time @safetestset "HomotopyContinuation Extension" begin include("extensions/homotopy_continuation.jl") end
76+
# @time @safetestset "Structural Identifiability Extension" begin include("extensions/structural_identifiability.jl") end
9777
end
9878

9979
end # @time

0 commit comments

Comments
 (0)