osmose.scenario_wizard

Functions

apply_basics(config, basics)

Return a new config with the four headline keys set; everything else untouched.

default_description(kind, name, basics)

parse_source(value)

Split a select value 'demo:<name>' / 'scenario:<name>' into (kind, name).

read_basics(config)

Parse the four headline keys from a config (sane fallbacks for missing/garbage).

resolve_source(kind, name, *, scenarios_dir)

Resolve a wizard source to a config (+ dir + case_map + parent).

source_choices(demos, scenarios)

Grouped <optgroup> choices for input_select; omit the saved group when empty.

validate_name(name, existing)

Problems with a proposed scenario name (empty list = valid).

Classes

Basics(nyear, ndtperyear, reproducible_rng)

Headline params the wizard sets on a source config.

ResolvedSource(kind, name, config, ...)