Skip to content

Commit 151573c

Browse files
committed
fix refs and doc build error
1 parent fc8ff3e commit 151573c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/src/faqs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Symbolics.jl before their use in Catalyst, see the discussion
311311
[here](https://symbolics.juliasymbolics.org/stable/manual/functions/).
312312

313313
## How can I turn off automatic inferring of species and parameters when using the DSL?
314-
This option can be set using the `@require_declaration` option inside `@reaction_network`. In this case all the species, parameters, and variables in the system must be pre-declared using one of the `@species`, `@parameters`, or `@variables` macros. For more information about what is inferred automatically and not, please see the section on [`@require_declaration`](@dsl_advanced_options_require_dec).
314+
This option can be set using the `@require_declaration` option inside `@reaction_network`. In this case all the species, parameters, and variables in the system must be pre-declared using one of the `@species`, `@parameters`, or `@variables` macros. For more information about what is inferred automatically and not, please see the section on [`@require_declaration`](@ref dsl_advanced_options_require_dec).
315315

316316
```@example faq9
317317
using Catalyst

docs/src/model_creation/dsl_advanced.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,13 @@ In some cases it may be desirable for Catalyst to not infer species and paramete
278278
```@example dsl_advanced_no_infer
279279
using Catalyst
280280
# The following case will throw an UndeclaredSymbolicError.
281-
rn = @reaction_network begin
281+
try @macroexpand @reaction_network begin
282282
@require_declaration
283283
(k1, k2), A <--> B
284284
end
285+
catch e
286+
println(e.msg)
287+
end
285288
```
286289
In order to avoid an error in this case all the relevant species and parameters will have to be declared.
287290
```
@@ -300,7 +303,7 @@ The following cases in which the DSL would normally infer variables will all thr
300303
- Inferring a parameter in a reaction rate expression, as in the reaction line `k*n, A --> B`
301304
- Inferring a parameter in the stoichiometry of a species, as in the reaction line `k, n*A --> B`
302305
- Inferring a differential variable on the LHS of a coupled differential equation, as in `A` in `@equations D(A) ~ A^2`
303-
- Inferring an [observable](@dsl_advanced_options_observables) that is declared using `@observables`
306+
- Inferring an [observable](@ref dsl_advanced_options_observables) that is declared using `@observables`
304307

305308
## [Naming reaction networks](@id dsl_advanced_options_naming)
306309
Each reaction network model has a name. It can be accessed using the `nameof` function. By default, some generic name is used:

0 commit comments

Comments
 (0)