Skip to content

Commit 625a2d5

Browse files
committed
Merge branch 'master' into dsl-no-infer-docs
2 parents 151573c + 28d1cc7 commit 625a2d5

24 files changed

+40
-39
lines changed

Project.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ Graphviz_jll = "3c863552-8265-54e4-a6dc-903eb78fde85"
7777
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
7878
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
7979
NonlinearSolve = "8913a72c-1f9b-4ce2-8d82-65094dcecaec"
80-
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
80+
OrdinaryDiffEqBDF = "6ad6398a-0878-4a85-9266-38940aa047c8"
81+
OrdinaryDiffEqDefault = "50262376-6c5a-4cf5-baba-aaf4f84d72d7"
82+
OrdinaryDiffEqRosenbrock = "43230ef6-c299-4910-a778-202eb28ce4ce"
83+
OrdinaryDiffEqTsit5 = "b1df2697-797e-41e3-8120-5422d3b24e4a"
84+
OrdinaryDiffEqVerner = "79d7bb75-1356-48c1-b8c0-6832512096c2"
8185
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
8286
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
8387
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
@@ -93,7 +97,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
9397
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
9498

9599
[targets]
96-
test = ["DiffEqCallbacks", "DomainSets", "Graphviz_jll", "Logging", "NonlinearSolve",
97-
"OrdinaryDiffEq", "Pkg", "Plots", "Random", "SafeTestsets", "SciMLBase", "SciMLNLSolve",
98-
"StableRNGs", "StaticArrays", "Statistics", "SteadyStateDiffEq", "StochasticDiffEq",
99-
"Test", "Unitful"]
100+
test = ["DiffEqCallbacks", "DomainSets", "Graphviz_jll", "Logging", "NonlinearSolve", "OrdinaryDiffEqBDF", "OrdinaryDiffEqDefault", "OrdinaryDiffEqRosenbrock", "OrdinaryDiffEqTsit5", "OrdinaryDiffEqVerner", "Pkg", "Plots", "Random", "SafeTestsets", "SciMLBase", "SciMLNLSolve", "StableRNGs", "StaticArrays", "Statistics", "SteadyStateDiffEq", "StochasticDiffEq", "Test", "Unitful"]

docs/src/model_creation/dsl_advanced.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ plot(sol)
273273
```
274274

275275
### [Turning off species, parameter, and variable inferring](@id dsl_advanced_options_require_dec)
276-
In some cases it may be desirable for Catalyst to not infer species and parameters from the DSL, as in the case of reaction networks with very many variables, or as a sanity check that variable names are written correctly. To turn off inferring, simply add the `@require_declaration` macro to one of the lines of the `@reaction_network` declaration. Having this macro means that every single variable, species, or parameter will have to be explicitly declared using the `@variable`, `@species`, or `@parameter` macro. In the case that the DSL parser encounters an undeclared symbolic in this case, it will error with an `UndeclaredSymbolicError` and print the reaction or equation that the undeclared symbolic was found in.
276+
In some cases it may be desirable for Catalyst to not infer species and parameters from the DSL, as in the case of reaction networks with very many variables, or as a sanity check that variable names are written correctly. To turn off inferring, simply add the `@require_declaration` macro to one of the lines of the `@reaction_network` declaration. Having this macro means that every single variable, species, or parameter will have to be explicitly declared using the `@variable`, `@species`, or `@parameter` macro. In the case that the DSL parser encounters an undeclared symbolic, it will error with an `UndeclaredSymbolicError` and print the reaction or equation that the undeclared symbolic was found in.
277277

278278
```@example dsl_advanced_no_infer
279279
using Catalyst

test/compositional_modelling/component_based_model_creation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
### Prepares Tests ###
44

55
# Fetch packages.
6-
using Catalyst, LinearAlgebra, OrdinaryDiffEq, SciMLNLSolve, Test
6+
using Catalyst, LinearAlgebra, OrdinaryDiffEqTsit5, SciMLNLSolve, Test
77
using ModelingToolkit: nameof
88

99
# Sets the default `t` to use.
@@ -543,4 +543,4 @@ let
543543
@test length(unknowns(sys3)) == 4
544544
@test length(parameters(sys4)) == 5
545545
@test any(isequal(p5), parameters(sys4))
546-
end
546+
end

test/dsl/dsl_options.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
### Prepares Tests ###
44

55
# Fetch packages.
6-
using Catalyst, ModelingToolkit, OrdinaryDiffEq, StochasticDiffEq, Plots, Test
6+
using Catalyst, ModelingToolkit, OrdinaryDiffEqTsit5, OrdinaryDiffEqRosenbrock, StochasticDiffEq, Plots, Test
77
using Symbolics: unwrap
88

99
# Sets stable rng number.

test/extensions/lattice_simulation_plotting.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### Preparations ###
22

33
# Fetch packages.
4-
using Catalyst, CairoMakie, GraphMakie, Graphs, JumpProcesses, OrdinaryDiffEq, Test
4+
using Catalyst, CairoMakie, GraphMakie, Graphs, JumpProcesses, OrdinaryDiffEqDefault, OrdinaryDiffEq, Test
55

66

77
### Checks Basic Plot Cases ###
@@ -130,4 +130,4 @@ let
130130
@test isfile("animation_tmp.mp4")
131131
rm("animation_tmp.mp4")
132132
end
133-
end
133+
end

test/extensions/stability_computation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### Fetch Packages ###
22

33
# Fetch packages.
4-
using Catalyst, OrdinaryDiffEq, SteadyStateDiffEq, Test
4+
using Catalyst, OrdinaryDiffEqVerner, SteadyStateDiffEq, Test
55
import HomotopyContinuation
66

77
# Sets rnd number.
@@ -105,4 +105,4 @@ let
105105
p = [:p => 1.0, :d => 1.0]
106106
u = [1.0]
107107
@test_throws Exception steady_state_stability(u, rn, p)
108-
end
108+
end

test/miscellaneous_tests/api.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
### Prepares Tests ###
44

55
# Fetch packages.
6-
using Catalyst, NonlinearSolve, OrdinaryDiffEq, SparseArrays, StochasticDiffEq, Test
6+
using Catalyst, NonlinearSolve, OrdinaryDiffEqTsit5, SparseArrays, StochasticDiffEq, Test
77
using LinearAlgebra: norm
88
using ModelingToolkit: value
99

@@ -505,4 +505,4 @@ let
505505
f(d,t), X --> 0
506506
end
507507
@test !isautonomous(rn8)
508-
end
508+
end

test/network_analysis/conservation_laws.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### Prepares Tests ###
22

33
# Fetch packages.
4-
using Catalyst, JumpProcesses, LinearAlgebra, NonlinearSolve, OrdinaryDiffEq, SteadyStateDiffEq, StochasticDiffEq, Test
4+
using Catalyst, JumpProcesses, LinearAlgebra, NonlinearSolve, OrdinaryDiffEqTsit5, OrdinaryDiffEqDefault, OrdinaryDiffEqVerner, SteadyStateDiffEq, StochasticDiffEq, Test
55

66
# Sets stable rng number.
77
using StableRNGs

test/performance_benchmarks/lattice_reaction_systems_ODE_performance.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
### Preparations ###
44

55
# Fetch packages.
6-
using OrdinaryDiffEq
6+
using OrdinaryDiffEqTsit5
77
using Random, Statistics, SparseArrays, Test
88

99
# Fetch test networks.

test/reactionsystem_core/coupled_equation_crn_systems.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Fetch packages.
2-
using Catalyst, NonlinearSolve, OrdinaryDiffEq, Statistics, SteadyStateDiffEq, StochasticDiffEq, Test
2+
using Catalyst, NonlinearSolve, OrdinaryDiffEqVerner, OrdinaryDiffEqTsit5, OrdinaryDiffEqRosenbrock, Statistics, SteadyStateDiffEq, StochasticDiffEq, Test
33
using ModelingToolkit: getdefault, getdescription, getdefault
44
using Symbolics: BasicSymbolic, unwrap
55

0 commit comments

Comments
 (0)