Skip to content
Skip to Content

replications

Key of the [ensemble] table. Qualified name: ensemble.replications

Number of replications `cohortix ensemble` runs, from 1 to 9999, each with its own seed path (AD-18); `cohortix run` ignores it and runs replication 0.

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

Description

replications is optional. When it is absent, the engine uses 1, and writes that value into effective.toml in the output folder. The value is an integer from 1 to 9999; 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
population = "closed"
aligned = false
scale_factor = 1.0

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

[ensemble]
replications = 1  # 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 rpelications, the key is refused before anything runs with the nearest accepted name:

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

Errors that name this key

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

See also

  • [ensemble]Replications of the scenario run by `cohortix ensemble` (AD-23).

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