hydromodpy.workflow.dispatch#

Workflow dispatch helpers.

Functions

extract_workflow_field(raw_toml)

Return [workflow].mode.

load_raw_toml(config_path)

Parse a TOML config file with recursive base_config inheritance.

resolve_workflow(config_path, *, ...)

Resolve and validate the workflow selected by config and caller.

Exceptions

WorkflowError([message, sim_id, run_id])

Base class for workflow-dispatch errors.

WorkflowMismatchError([message, sim_id, run_id])

Requested workflow and TOML workflow field disagree.

WorkflowMissingError([message, sim_id, run_id])

TOML lacks the workflow mode field.

WorkflowUnknownError([message, sim_id, run_id])

TOML declares an unknown workflow value.