Skip to content
Skip to Content

placeholder_size

Key of the [population] table. Qualified name: population.placeholder_size

Number of persons in the kernel's placeholder population, used only when no `population.person` table is bound in [data.bindings].

Type
integer
Unit
countNumber of persons, events or items
Default
100used when the key is absent
Valid range
1 to 100000000whole numbers
Set in
[population]optional table
Since
0.1engine 0.1.0

Description

placeholder_size is optional. When it is absent, the engine uses 100, and writes that value into effective.toml in the output folder. The value is an integer from 1 to 100000000; outside that range the engine stops with E1013. Unit: count (number of persons, events or items).

Example

scenario.toml
# scenario.toml

[scenario]
name = "tracer"
seed = 20180101

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

[population]
placeholder_size = 100  # 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 palceholder_size, the key is refused before anything runs with the nearest accepted name:

cohortix run scenario.toml
error[E1022]: Unknown key `palceholder_size` in [population]; did you mean `placeholder_size`?
  --> scenario.toml:12:1
  = fix: Rename `palceholder_size` to `placeholder_size`, or remove it; the accepted keys of [population] are "placeholder_size".

Errors that name this key

  • E1008: placeholder_size must be …, but it is ….
  • E1013: placeholder_size is …, outside the allowed range … to ….
  • E1022: Unknown key … in [population]; did you mean …?

See also

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