Skip to content
Skip to Content

aligned

Key of the [scenario] table. Qualified name: scenario.aligned

Whether simulated totals are aligned on external targets; a declaration recorded in provenance, not an alignment mechanism (FR-7).

Type
boolean
Unit
none
Default
requiredexample: false
Valid range
any string
Set in
[scenario]required table
Since
0.1engine 0.1.0

Description

aligned is required: a [scenario] table without it stops with E1006.

Example

scenario.toml
# scenario.toml

[scenario]
name = "tracer"
seed = 20180101
population = "closed"
aligned = false  # this page
scale_factor = 1.0

[time]
start = 2018-01-01
end = 2019-01-01

[plugins."test/ticker"]

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

When the key is misspelled

Written ailgned, the key is refused before anything runs, as missing and as unknown, with the nearest accepted name:

cohortix run scenario.toml
error[E1006]: [scenario] has no `aligned`, which is required and must be a boolean.
  --> scenario.toml:3:2
  = fix: Add `aligned` under [scenario], as a boolean, for example `aligned = false`.
 
error[E1022]: Unknown key `ailgned` in [scenario]; did you mean `aligned`?
  --> scenario.toml:7:1
  = fix: Rename `ailgned` to `aligned`, or remove it; the accepted keys of [scenario] are "name", "seed", "population", "aligned", "scale_factor".

Errors that name this key

  • E1006: [scenario] has no aligned, which is required and must be ….
  • E1008: aligned must be …, but it is ….
  • E1022: Unknown key … in [scenario]; did you mean …?

See also

  • [scenario]Identity of the scenario: its name and the root of its random seeds.
  • nameName of the scenario (ASCII letters, digits, `-` and `_`)
  • seedRoot of the seed tree, an integer from 0 to 2^63 - 1

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