order
Key of the [phases] table. Qualified name: phases.order
Ordered list of the phases run at every step; every phase of an active plugin must be listed.
- Type
- array of strings
- Unit
- none
- Default
- ["ageing", "death", "migration", "union", "contraception", "conception_birth", "households"]used when the key is absent
- Valid range
- any listof strings
- Set in
- [phases]optional table
- Since
- 0.1engine 0.1.0
Description
order is optional. When it is absent, the engine uses ["ageing", "death", "migration", "union", "contraception", "conception_birth", "households"], and writes that value into effective.toml in the output folder.
Example
# scenario.toml
[scenario]
name = "tracer"
seed = 20180101
[time]
start = 2018-01-01
end = 2019-01-01
[phases]
order = ["ageing", "death", "migration", "union", "contraception", "conception_birth", "households"] # this page
[plugins."test/ticker"]Run it with the engine built from source: cohortix run scenario.toml --output output/example.
Related
When the key is misspelled
Written odrer, the key is refused before anything runs with the nearest accepted name:
error[E1022]: Unknown key `odrer` in [phases]; did you mean `order`?
--> scenario.toml:12:1
= fix: Rename `odrer` to `order`, or remove it; the accepted keys of [phases] are "order", "wave_depth".
Errors that name this key
See also
- [phases]Phases run at every step, in order (AD-10).
- wave_depthDeepest event wave a phase barrier delivers, from 1 to 1000
Generated from crates/cohortix-kernel/src/scenario/config.rs. Do not edit. This page (key phases.order) is built from the engine sources at every documentation build. To change it, edit its ConfigKey in kernel_groups() and its one-line comment config.key.phases.order in schemas/messages/en.toml and open a pull request.