grids
Key of the [outputs] table. Qualified name: outputs.grids
Time grids of the indicator tables, from "day", "week", "month", "quarter", "year", none finer than the step (a week step allows only "week" and "year"); default: the step's grid and "year".
- Type
- array of strings
- Unit
- none
- Default
- no defaultexample: ["month", "year"]
- Valid range
- any listof strings
- Set in
- [outputs]optional table
- Since
- 0.1engine 0.1.0
Description
grids is optional and has no default: when it is absent, the engine does without it.
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]
grids = ["month", "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 girds, the key is refused before anything runs with the nearest accepted name:
error[E1022]: Unknown key `girds` in [outputs]; did you mean `grids`?
--> scenario.toml:15:1
= fix: Rename `girds` to `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.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.grids in schemas/messages/en.toml and open a pull request.
size_budget
Journal size budget in bytes; a larger pre-run estimate gives a warning and the run goes on. No default: without it no estimate is made.
indicators
Indicator ids to write, canonical names listed in schemas/indicators.toml; without it every indicator the step can estimate is written and the others are left out with a warning.