name
Key of the [scenario] table. Qualified name: scenario.name
Name of the scenario (ASCII letters, digits, `-` and `_`); it names the default output folder and never enters a random seed.
- Type
- string
- Unit
- none
- Default
- requiredexample: "tracer"
- Valid range
- any string
- Set in
- [scenario]required table
- Since
- 0.1engine 0.1.0
Description
name is required: a [scenario] table without it stops with E1006.
Example
# scenario.toml
[scenario]
name = "tracer" # this page
seed = 20180101
[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.
Related
When the key is misspelled
Written nmae, the key is refused before anything runs, as missing and as unknown, with the nearest accepted name:
error[E1006]: [scenario] has no `name`, which is required and must be a string.
--> scenario.toml:3:2
= fix: Add `name` under [scenario], as a string, for example `name = "tracer"`.
error[E1022]: Unknown key `nmae` in [scenario]; did you mean `name`?
--> scenario.toml:4:1
= fix: Rename `nmae` to `name`, or remove it; the accepted keys of [scenario] are "name", "seed".
Errors that name this key
E1006: [scenario] has noname, which is required and must be ….E1008:namemust 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.
- 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.name) 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.name in schemas/messages/en.toml and open a pull request.