hydromodpy.analysis.config_helpers#

Shared config parsing helpers for analysis workflows.

Functions

normalize_mapping(value, *, label)

Return a plain dict from an optional mapping value.

normalize_text_list(value, *, label)

Normalize one optional list of distinct text values.

normalize_text_mapping(value, *, label)

Normalize one optional mapping of text keys and values.

optional_text(value)

Return one normalized optional text value.

require_mapping(value, *, label)

Validate that one raw value is a mapping.

require_text(value, *, label)

Return one normalized non-empty text value.

resolve_optional_path(base_dir, raw_path)

Resolve one optional path relative to the configuration file.

resolve_required_path(base_dir, raw_path, *, ...)

Resolve one required path relative to the configuration file.

validate_optional_positive_int(value, *, label)

Validate one optional positive integer.