hydromodpy.workflow.steps.setup#

Setup step - structural bootstrap, geographic, spatial supports, process objects.

Functions

augment_runtime_zone_ids(domain_cfg, ...)

Ensure runtime-only zone ids required by launcher bindings are declared.

build_domain_spatial_supports(cfg, ...)

Materialize declared spatial supports for the requested launcher phase.

build_geographic_runtime(cfg, workspace)

Build the geographic runtime selected by the validated TOML config.

collect_requested_support_ids(flow_cfg)

Return the ordered support ids referenced by heterogeneous flow parameters.

flow_requires_spatial_support(flow)

Return True when at least one flow parameter is heterogeneous.

resolve_dem_init_path(cfg, run_state)

Populate geographic.dem_init_path from [[data.dem.sources]] when absent.

resolve_support_configs(domain_cfg, ...)

Resolve support configs actually needed by the current flow parameters.

run_setup(cfg, run_state, *[, ...])

Initialise the structural objects shared by all later process runs.

step_setup(ctx, *[, ...])

Populate ctx.setup with workspace, geographic, domain, flow, transport.

step_spatial_supports(ctx, *, phase[, ...])

Materialize declared spatial supports for the given build phase.

support_provider_names(domain_supports)

Return the ordered provider names declared by resolved support configs.

validate_domain_support_contract(domain_cfg, ...)

Fail early when heterogeneous flow parameters reference undeclared supports.

Classes

BuildGeographicStep()

Build geographic runtime, domain, and setup-phase spatial supports.

SetupProcessStep()

Instantiate flow / transport process objects bound to the domain.