Skip to content

Commit

Permalink
fix typo in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Feb 23, 2024
1 parent 1061b33 commit de0211c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ ExpRelaxation

## `Process` API

This API describes how you can implement your own `Process` subtype, if the [existing predefined subtypes](@ref predefineProcessBasedModelling.timescaled_processes) don't fit your bill!
This API describes how you can implement your own `Process` subtype, if the [existing predefined subtypes](@ref predefined_processes) don't fit your bill!

```@docs
Process
Expand Down
7 changes: 5 additions & 2 deletions src/API.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""
A process subtype `p::Process` extends the following unexported functions:
Process
A new process must subtype `Process` and can be used in [`processes_to_mtkmodel`](@ref).
The type must extend the following functions from the module `ProcessBasedModelling`:
- `lhs_variable(p)` which returns the variable the process describes
(left-hand-side variable). There is a default implementation
Expand Down Expand Up @@ -57,7 +60,7 @@ function lhs(p::Process)
τ = timescale(p)
v = lhs_variable(p)
if isnothing(τ) # time variability exists but timescale is nonexistent (unity)
return D(v)
return D(v) # `D` is the MTK canonical variable for time derivative
elseif τ isa NoTimeDerivative || iszero(τ) # no time variability
return v
else # τ is either Num or Real
Expand Down

0 comments on commit de0211c

Please sign in to comment.