Skip to content

Commit 9ab9290

Browse files
committed
Merge branch 'master' into dsl_file_improvements
2 parents 71c9b5c + 6ccbc1f commit 9ab9290

File tree

103 files changed

+5273
-1828
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+5273
-1828
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
group:
1515
- Core
1616
version:
17-
- '1.10.2'
17+
- '1'
1818
steps:
1919
- uses: actions/checkout@v4
2020
- uses: julia-actions/setup-julia@v2
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
file: lcov.info
3939
token: ${{ secrets.CODECOV_TOKEN }}
40-
fail_ci_if_error: true
40+
fail_ci_if_error: false
4141
- uses: coverallsapp/github-action@master
4242
with:
4343
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/Documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
with:
2929
file: lcov.info
3030
token: ${{ secrets.CODECOV_TOKEN }}
31-
fail_ci_if_error: true
31+
fail_ci_if_error: false

.github/workflows/FormatCheck.yml

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: format-check
1+
name: "Format Check"
22

33
on:
44
push:
@@ -9,34 +9,6 @@ on:
99
pull_request:
1010

1111
jobs:
12-
build:
13-
runs-on: ${{ matrix.os }}
14-
strategy:
15-
matrix:
16-
julia-version: [1]
17-
julia-arch: [x86]
18-
os: [ubuntu-latest]
19-
steps:
20-
- uses: julia-actions/setup-julia@latest
21-
with:
22-
version: ${{ matrix.julia-version }}
23-
24-
- uses: actions/checkout@v4
25-
- name: Install JuliaFormatter and format
26-
# This will use the latest version by default but you can set the version like so:
27-
#
28-
# julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.13.0"))'
29-
run: |
30-
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="1.0.32"))'
31-
julia -e 'using JuliaFormatter; format(".", verbose=true)'
32-
- name: Format check
33-
run: |
34-
julia -e '
35-
out = Cmd(`git diff --name-only`) |> read |> String
36-
if out == ""
37-
exit(0)
38-
else
39-
@error "Some files have not been formatted !!!"
40-
write(stdout, out)
41-
exit(1)
42-
end'
12+
format-check:
13+
name: "Format Check"
14+
uses: "SciML/.github/.github/workflows/format-check.yml@v1"

.github/workflows/Invalidations.yml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,10 @@ on:
44
pull_request:
55

66
concurrency:
7-
# Skip intermediate builds: always.
8-
# Cancel intermediate builds: always.
97
group: ${{ github.workflow }}-${{ github.ref }}
108
cancel-in-progress: true
119

1210
jobs:
13-
evaluate:
14-
# Only run on PRs to the default branch.
15-
# In the PR trigger above branches can be specified only explicitly whereas this check should work for master, main, or any other default branch
16-
if: github.base_ref == github.event.repository.default_branch
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: julia-actions/setup-julia@v2
20-
with:
21-
version: '1'
22-
- uses: actions/checkout@v4
23-
- uses: julia-actions/julia-buildpkg@v1
24-
- uses: julia-actions/julia-invalidations@v1
25-
id: invs_pr
26-
27-
- uses: actions/checkout@v4
28-
with:
29-
ref: ${{ github.event.repository.default_branch }}
30-
- uses: julia-actions/julia-buildpkg@v1
31-
- uses: julia-actions/julia-invalidations@v1
32-
id: invs_default
33-
34-
- name: Report invalidation counts
35-
run: |
36-
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
37-
echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
38-
- name: Check if the PR does increase number of invalidations
39-
if: steps.invs_pr.outputs.total > steps.invs_default.outputs.total
40-
run: exit 1
11+
evaluate-invalidations:
12+
name: "Evaluate Invalidations"
13+
uses: "SciML/.github/.github/workflows/invalidations.yml@v1"

HISTORY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ rn = @reaction_network begin
2424
@parameters η
2525
k, 2X --> X2, [noise_scaling=η]
2626
end
27-
get_noise_scaling(rn)
27+
getnoisescaling(rn)
2828
```
2929
- `SDEProblem` no longer takes the `noise_scaling` argument (see above for new approach to handle noise scaling).
3030
- Changed fields of internal `Reaction` structure. `ReactionSystems`s saved using `serialize` on previous Catalyst versions cannot be loaded using this (or later) versions.

Project.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ uuid = "479239e8-5488-4da2-87a7-35f2df7eef83"
33
version = "13.5.1"
44

55
[deps]
6+
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
67
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
78
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
89
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
@@ -21,7 +22,6 @@ Requires = "ae029012-a4dd-5104-9daa-d747884805df"
2122
RuntimeGeneratedFunctions = "7e49a35a-f44a-4d26-94aa-eba1b4ca6b47"
2223
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
2324
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
24-
SymbolicUtils = "d1185830-fcd6-423d-90d6-eec64667417b"
2525
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
2626
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
2727

@@ -37,27 +37,28 @@ CatalystStructuralIdentifiabilityExtension = "StructuralIdentifiability"
3737

3838
[compat]
3939
BifurcationKit = "0.3"
40+
Combinatorics = "1.0.2"
4041
DataStructures = "0.18"
4142
DiffEqBase = "6.83.0"
4243
DocStringExtensions = "0.8, 0.9"
44+
DynamicPolynomials = "0.5"
4345
DynamicQuantities = "0.13.2"
4446
Graphs = "1.4"
4547
HomotopyContinuation = "2.9"
4648
JumpProcesses = "9.3.2"
4749
LaTeXStrings = "1.3.0"
4850
Latexify = "0.14, 0.15, 0.16"
4951
MacroTools = "0.5.5"
50-
ModelingToolkit = "9.11.0"
52+
ModelingToolkit = "9.16.0"
5153
Parameters = "0.12"
5254
Reexport = "0.2, 1.0"
5355
Requires = "1.0"
5456
RuntimeGeneratedFunctions = "0.5.12"
5557
Setfield = "1"
56-
StructuralIdentifiability = "0.5.1"
57-
SymbolicUtils = "1.0.3"
58-
Symbolics = "5.27"
58+
StructuralIdentifiability = "0.5.8"
59+
Symbolics = "5.30.1"
5960
Unitful = "1.12.4"
60-
julia = "1.9"
61+
julia = "1.10"
6162

6263
[extras]
6364
BifurcationKit = "0f109fa4-8a5d-4b75-95aa-f515264e7665"
@@ -66,6 +67,7 @@ DomainSets = "5b8099bc-c8ec-5219-889f-1d9e522a28bf"
6667
Graphviz_jll = "3c863552-8265-54e4-a6dc-903eb78fde85"
6768
HomotopyContinuation = "f213a82b-91d6-5c5d-acf7-10f1c761b327"
6869
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
70+
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
6971
NonlinearSolve = "8913a72c-1f9b-4ce2-8d82-65094dcecaec"
7072
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
7173
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
@@ -82,4 +84,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
8284
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
8385

8486
[targets]
85-
test = ["BifurcationKit", "DiffEqCallbacks", "DomainSets", "Graphviz_jll", "HomotopyContinuation", "NonlinearSolve", "OrdinaryDiffEq", "Plots", "Random", "SafeTestsets", "SciMLBase", "SciMLNLSolve", "StableRNGs", "Statistics", "SteadyStateDiffEq", "StochasticDiffEq", "StructuralIdentifiability", "Test", "Unitful"]
87+
test = ["BifurcationKit", "DiffEqCallbacks", "DomainSets", "Graphviz_jll", "HomotopyContinuation", "Logging", "NonlinearSolve", "OrdinaryDiffEq", "Plots", "Random", "SafeTestsets", "SciMLBase", "SciMLNLSolve", "StableRNGs", "Statistics", "SteadyStateDiffEq", "StochasticDiffEq", "StructuralIdentifiability", "Test", "Unitful"]

docs/Project.toml

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
55
Catalyst = "479239e8-5488-4da2-87a7-35f2df7eef83"
66
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
77
DiffEqParamEstim = "1130ab10-4a5a-5621-a13d-e4788d82bd4c"
8-
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
98
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
109
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
1110
DynamicalSystems = "61744808-ddfa-5f27-97ff-6e42cc95d634"
@@ -29,45 +28,45 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
2928
QuasiMonteCarlo = "8a4e6c94-4038-4cdc-81c3-7e6ffdb2a71b"
3029
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
3130
SciMLSensitivity = "1ed8b502-d754-442c-8d5d-10ac956f44a1"
32-
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
3331
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
32+
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
3433
SteadyStateDiffEq = "9672c7b4-1e72-59bd-8a11-6ac3964bc41f"
3534
StochasticDiffEq = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0"
3635
StructuralIdentifiability = "220ca800-aa68-49bb-acd8-6037fa93a544"
3736
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
3837

3938
[compat]
40-
BenchmarkTools = "1"
41-
BifurcationKit = "0.3"
39+
BenchmarkTools = "1.5"
40+
BifurcationKit = "0.3.4"
4241
CairoMakie = "0.12"
4342
Catalyst = "13"
44-
DataFrames = "1"
45-
DiffEqParamEstim = "2.1"
46-
DifferentialEquations = "7.7"
43+
DataFrames = "1.6"
44+
DiffEqParamEstim = "2.2"
4745
Distributions = "0.25"
4846
Documenter = "1.4.1"
49-
DynamicalSystems = "3"
50-
GlobalSensitivity = "2.4.0"
51-
HomotopyContinuation = "2.6"
47+
DynamicalSystems = "3.3"
48+
GlobalSensitivity = "2.6"
49+
HomotopyContinuation = "2.9"
5250
IncompleteLU = "0.2"
53-
JumpProcesses = "9"
54-
Latexify = "0.15, 0.16"
55-
LinearSolve = "2"
56-
ModelingToolkit = "9.5"
57-
NonlinearSolve = "3.4.0"
58-
Optim = "1"
59-
Optimization = "3.19"
60-
OptimizationBBO = "0.1.5, 0.2"
61-
OptimizationNLopt = "0.1.8"
62-
OptimizationOptimJL = "0.1.14"
63-
OptimizationOptimisers = "0.1.1"
64-
OrdinaryDiffEq = "6"
65-
Plots = "1.36"
66-
SciMLBase = "2.13"
67-
SciMLSensitivity = "7.19"
68-
Setfield = "1.1"
69-
SpecialFunctions = "2.1"
70-
SteadyStateDiffEq = "2.0.1"
71-
StochasticDiffEq = "6"
72-
StructuralIdentifiability = "0.5.1"
73-
Symbolics = "5.14"
51+
JumpProcesses = "9.11"
52+
Latexify = "0.16"
53+
LinearSolve = "2.30"
54+
ModelingToolkit = "9.16.0"
55+
NonlinearSolve = "3.12"
56+
Optim = "1.9"
57+
Optimization = "3.25"
58+
OptimizationBBO = "0.2.1"
59+
OptimizationNLopt = "0.2.1"
60+
OptimizationOptimJL = "0.3.1"
61+
OptimizationOptimisers = "0.2.1"
62+
OrdinaryDiffEq = "6.80.1"
63+
Plots = "1.40"
64+
QuasiMonteCarlo = "0.3"
65+
SciMLBase = "2.39"
66+
SciMLSensitivity = "7.60"
67+
SpecialFunctions = "2.4"
68+
StaticArrays = "1.9"
69+
SteadyStateDiffEq = "2.2"
70+
StochasticDiffEq = "6.65"
71+
StructuralIdentifiability = "0.5.8"
72+
Symbolics = "5.30.1"

docs/make.jl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ include("pages.jl")
3131
# pages = pages)
3232

3333
makedocs(sitename = "Catalyst.jl",
34-
authors = "Samuel Isaacson",
35-
format = Documenter.HTML(; analytics = "UA-90474609-3",
36-
prettyurls = (get(ENV, "CI", nothing) == "true"),
37-
assets = ["assets/favicon.ico"],
38-
canonical = "https://docs.sciml.ai/Catalyst/stable/"),
39-
modules = [Catalyst, ModelingToolkit],
40-
doctest = false,
41-
clean = true,
42-
pages = pages,
43-
pagesonly = true,
44-
warnonly = true)
34+
authors = "Samuel Isaacson",
35+
format = Documenter.HTML(; analytics = "UA-90474609-3",
36+
prettyurls = (get(ENV, "CI", nothing) == "true"),
37+
assets = ["assets/favicon.ico"],
38+
canonical = "https://docs.sciml.ai/Catalyst/stable/"),
39+
modules = [Catalyst, ModelingToolkit],
40+
doctest = false,
41+
clean = true,
42+
pages = pages,
43+
pagesonly = true,
44+
warnonly = [:missing_docs])
4545

4646
deploydocs(repo = "github.com/SciML/Catalyst.jl.git";
47-
push_preview = true)
47+
push_preview = true)

docs/pages.jl

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
pages = Any[
2-
"Home" => "home.md",
2+
"Home" => "index.md",
33
"Introduction to Catalyst" => Any[
44
"introduction_to_catalyst/catalyst_for_new_julia_users.md",
55
"introduction_to_catalyst/introduction_to_catalyst.md"
6-
# Advanced introduction.
76
],
87
"Model Creation and Properties" => Any[
98
"model_creation/dsl_basics.md",
109
"model_creation/dsl_advanced.md",
1110
"model_creation/programmatic_CRN_construction.md",
1211
"model_creation/compositional_modeling.md",
1312
"model_creation/constraint_equations.md",
14-
# Events.
15-
"model_creation/parametric_stoichiometry.md",# Distributed parameters, rates, and initial conditions.
16-
# Loading and writing models to files.
17-
# Model visualisation.
13+
"model_creation/parametric_stoichiometry.md",
14+
"model_creation/model_file_loading_and_export.md",
15+
"model_creation/model_visualisation.md",
1816
"model_creation/network_analysis.md",
1917
"model_creation/chemistry_related_functionality.md",
2018
"Model creation examples" => Any[
@@ -26,47 +24,28 @@ pages = Any[
2624
],
2725
"Model simulation" => Any[
2826
"model_simulation/simulation_introduction.md",
29-
# Simulation introduction.
3027
"model_simulation/simulation_plotting.md",
3128
"model_simulation/simulation_structure_interfacing.md",
3229
"model_simulation/ensemble_simulations.md",
33-
# Stochastic simulation statistical analysis.
34-
"model_simulation/ode_simulation_performance.md",
35-
# ODE Performance considerations/advice.
36-
# SDE Performance considerations/advice.
37-
# Jump Performance considerations/advice.
38-
# Finite state projection
30+
"model_simulation/ode_simulation_performance.md"
3931
],
4032
"Steady state analysis" => Any[
4133
"steady_state_functionality/homotopy_continuation.md",
4234
"steady_state_functionality/nonlinear_solve.md",
43-
"steady_state_functionality/steady_state_stability_computation.md",
35+
"steady_state_functionality/steady_state_stability_computation.md",
4436
"steady_state_functionality/bifurcation_diagrams.md",
4537
"steady_state_functionality/dynamical_systems.md"
4638
],
4739
"Inverse Problems" => Any[
48-
# Inverse problems introduction.
4940
"inverse_problems/optimization_ode_param_fitting.md",
5041
# "inverse_problems/petab_ode_param_fitting.md",
51-
# ODE parameter fitting using Turing.
52-
# SDE/Jump fitting.
5342
"inverse_problems/behaviour_optimisation.md",
5443
"inverse_problems/structural_identifiability.md",
55-
# Practical identifiability.
5644
"inverse_problems/global_sensitivity_analysis.md",
5745
"Inverse problem examples" => Any[
5846
"inverse_problems/examples/ode_fitting_oscillation.md"
5947
]
6048
],
61-
"Spatial modelling" => Any[
62-
# Intro.
63-
# Lattice ODEs.
64-
# Lattice Jumps.
65-
],
66-
# "Developer Documentation" => Any[
67-
# # Contributor's guide.
68-
# # Repository structure.
69-
# ],
7049
"FAQs" => "faqs.md",
7150
"API" => "api.md"
72-
]
51+
]

0 commit comments

Comments
 (0)