age_grids
Key of the [outputs] table. Qualified name: outputs.age_grids
Age groupings of the indicator tables, from "single_year", "five_year", "age_months" (needs a day, week or month step) and "age_days" (needs a day step); default: ["single_year", "five_year"].
- Type
- array of strings
- Unit
- none
- Default
- ["single_year", "five_year"]used when the key is absent
- Valid range
- any listof strings
- Set in
- [outputs]optional table
- Since
- 0.1engine 0.1.0
Description
age_grids is optional. When it is absent, the engine uses ["single_year", "five_year"], and writes that value into effective.toml in the output folder.
Example
# scenario.toml
[scenario]
name = "tracer"
seed = 20180101
population = "closed"
aligned = false
scale_factor = 1.0
[time]
start = 2018-01-01
end = 2019-01-01
[outputs]
age_grids = ["single_year", "five_year"] # 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 aeg_grids, the key is refused before anything runs with the nearest accepted name:
error[E1022]: Unknown key `aeg_grids` in [outputs]; did you mean `age_grids`?
--> scenario.toml:15:1
= fix: Rename `aeg_grids` to `age_grids`, or remove it; the accepted keys of [outputs] are "persistence", "events", "size_budget", "grids", "indicators", "age_grids".
Errors that name this key
See also
- [outputs]What the run writes to its output folder.
- persistenceJournal persistence
- eventsEvent types the journal keeps when persistence is "subset", as canonical names such as "c
Generated from crates/cohortix-kernel/src/scenario/config.rs. Do not edit. This page (key outputs.age_grids) 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.outputs.age_grids in schemas/messages/en.toml and open a pull request.