Skip to content
Skip to Content

indicators

Key of the [outputs] table. Qualified name: outputs.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.

Type
array of strings
Unit
none
Default
no defaultexample: ["c:official/Core.population"]
Valid range
any listof strings
Set in
[outputs]optional table
Since
0.1engine 0.1.0

Description

indicators is optional and has no default: when it is absent, the engine does without it.

Example

scenario.toml
# 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]
indicators = ["c:official/Core.population"]  # this page

[plugins."test/ticker"]

Run it with the engine built from source: cohortix run scenario.toml --output output/example.

When the key is misspelled

Written idnicators, the key is refused before anything runs with the nearest accepted name:

cohortix run scenario.toml
error[E1022]: Unknown key `idnicators` in [outputs]; did you mean `indicators`?
  --> scenario.toml:15:1
  = fix: Rename `idnicators` to `indicators`, or remove it; the accepted keys of [outputs] are "persistence", "events", "size_budget", "grids", "indicators", "age_grids".

Errors that name this key

  • E1008: indicators must be …, but it is ….
  • E1022: Unknown key … in [outputs]; did you mean …?

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.indicators) 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.indicators in schemas/messages/en.toml and open a pull request.

On this page

You are reading the docs for 0.1. Keys can change between versions: use the version that matches cohortix --version.