uwtools.api.ecflow
API access to uwtools ecFlow support.
- uwtools.api.ecflow.realize(config, output_path=None, scripts_path=None, stdin_ok=False)
Realize the ecFlow workflow defined in the given YAML as a Suite Definition and ecf scripts.
If no input file is specified,
stdinis read. AYAMLConfigobject may also be provided as input. If no output file is specified, the Suite Definition is written tostdout. The ecf scripts are not produced ifscripts_pathis not provided.- Parameters:
config (_YAMLConfig | Path | str | None) – YAML input file or
YAMLConfigobject (None=> readstdin).output_path (Path | str | None) – Suite Definition output path (
None=> write tostdout).scripts_path (Path | str | None) – ecf scripts top-level path (
None=> no scripts are generated).stdin_ok (bool) – OK to read from
stdin?
- Raises:
UWConfigErrorif validation fails.- Returns:
True.- Return type:
- uwtools.api.ecflow.validate(config=None, stdin_ok=False)
Validate an ecFlow config against its schema.