Skip to content
Skip to Content

step

Key of the [time] table. Qualified name: time.step

Step length: "month" or "year".

Type
stringfrom a closed set
Unit
none
Default
"month"used when the key is absent
Valid range
one of 2"month", "year"
Set in
[time]required table
Since
0.1engine 0.1.0

Description

step is optional. When it is absent, the engine uses "month", and writes that value into effective.toml in the output folder. Accepted values: "month", "year". Any other value stops with E1009. With start and step, end must come after start by a whole number of steps (E1012).

Example

scenario.toml
# scenario.toml

[scenario]
name = "tracer"
seed = 20180101

[time]
start = 2018-01-01
end = 2019-01-01
step = "month"  # 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 setp, the key is refused before anything runs with the nearest accepted name:

cohortix run scenario.toml
error[E1022]: Unknown key `setp` in [time]; did you mean `step`?
  --> scenario.toml:10:1
  = fix: Rename `setp` to `step`, or remove it; the accepted keys of [time] are "start", "end", "step".

Errors that name this key

  • E1008: step must be …, but it is ….
  • E1009: step is …, which is not one of ….
  • E1012: [time] end … is not after start … by a whole number of … steps.
  • E1022: Unknown key … in [time]; did you mean …?

See also

  • [time]Simulated period and step length.
  • startFirst day of the first simulated month, as a date or "YYYY-MM-DD".
  • endFirst day after the run, after start by a whole number of steps.

Generated from crates/cohortix-kernel/src/scenario/config.rs. Do not edit. This page (key time.step) 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.time.step 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.