hydromt.io.read_workflow_yaml#
- hydromt.io.read_workflow_yaml(path: str | Path, modeltype: str | None = None, defaults: Dict[str, Any] | None = None, abs_path: bool = True, skip_abspath_sections: List[str] | None = None) Tuple[str, Dict[str, Any], List[HydromtModelStep]] [source]#
Read HydroMT workflow yaml file.
- Parameters:
path (
StrPath
) – Path to workflow yaml file.modeltype (
str
, optional) – Model type (eg wflow, sfincs). If given, this overrules the modeltype specified in the workflow file, by default Nonedefaults (
dict
, optional) – Nested dictionary with default options, by default dict()abs_path (
bool
, optional) – If True, parse string values to an absolute path if the a file or folder with that name (string value) relative to the config file exist, by default Trueskip_abspath_sections (
list
, optional) – These sections are not evaluated for absolute paths if abs_path=True, by default [‘setup_config’]
- Returns: