Skip to content

Commit e1a9ac6

Browse files
committed
document processes_to_mtkeqs and list in docs
1 parent d924b4a commit e1a9ac6

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
ProcessBasedModelling.jl follows semver 2.0.
44
Changelog is kept with respect to v1 release.
55

6+
## 1.5
7+
8+
- Add docstring to `processes_to_mtkeqs` and list it in the documentation.
9+
(function was already exported but not made public in the docs)
10+
611
## 1.4
712

813
- Allow `TimeDerivative(p::Process)`.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ProcessBasedModelling"
22
uuid = "ca969041-2cf3-4b10-bc21-86f4417093eb"
33
authors = ["Datseris <[email protected]>"]
4-
version = "1.4.0"
4+
version = "1.5.0"
55

66
[deps]
77
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"

docs/src/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ when developing a field-specific library.
201201

202202
```@docs
203203
processes_to_mtkmodel
204+
processes_to_mtkeqs
204205
register_default_process!
205206
default_processes
206207
default_processes_eqs

src/make.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Construct a ModelingToolkit.jl model/system using the provided `processes` and `default` processes.
55
The model/system is _not_ structurally simplified. Use the function
6-
`processes_to_mtkeqs` to obtain the raw `Vector{Equation}` before it is
6+
[`processes_to_mtkeqs`](@ref) to obtain the raw `Vector{Equation}` before it is
77
passed to the MTK model/system like `ODESystem`.
88
99
During construction, the following automations improve user experience:
@@ -62,6 +62,12 @@ function processes_to_mtkmodel(args...;
6262
return sys
6363
end
6464

65+
"""
66+
processes_to_mtkeqs(args...) → eqs
67+
68+
Same as in [`processes_to_mtkmodel`](@ref), but return the created vector of `Equation`s
69+
before the are passed to an MTK system.
70+
"""
6571
processes_to_mtkeqs(procs::Vector; kw...) =
6672
processes_to_mtkeqs(procs, Dict{Num, Any}(); kw...)
6773
processes_to_mtkeqs(procs::Vector, m::Module; kw...) =

0 commit comments

Comments
 (0)