Skip to content

Commit 633152b

Browse files
committed
update complete example
1 parent 61c0e4a commit 633152b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/src/model_creation/programmatic_CRN_construction.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Here we use `nothing` where the DSL used ``\varnothing``. Finally, we are ready
5252
to construct our [`ReactionSystem`](@ref) as
5353
```@example ex
5454
@named repressilator = ReactionSystem(rxs, t)
55+
repressilator = complete(repressilator)
5556
nothing # hide
5657
```
5758
Notice, the model is named `repressilator`. A name must always be specified when
@@ -62,7 +63,7 @@ Alternatively, one can use the `name = :repressilator` keyword argument to the
6263
`ReactionSystem` constructor.
6364

6465
!!! warning
65-
All `ReactionSystem`s created via the symbolic interface (i.e. by calling `ReactionSystem` with some input, rather than using `@reaction_network`) are not marked as complete. To simulate them, they must first be marked as *complete*, indicating to Catalyst and ModelingToolkit that they represent finalized models. This can be done using the `complete` function, i.e. by calling `repressilator = complete(repressilator)`. An expanded description on *completeness* can be found [here](@ref completeness_note).
66+
All `ReactionSystem`s created via the symbolic interface (i.e. by calling `ReactionSystem` with some input, rather than using `@reaction_network`) are not marked as complete. To simulate them, they must first be marked as *complete*, indicating to Catalyst and ModelingToolkit that they represent finalized models. This can be done using the `complete` function, as above. An expanded description on *completeness* can be found [here](@ref completeness_note).
6667

6768
We can check that this is the same model as the one we defined via the DSL as
6869
follows (this requires that we use the same names for rates, species and the

0 commit comments

Comments
 (0)