windkit.io.windio.read_turbine#

windkit.io.windio.read_turbine(path, resolve=False)[source]#

Parse a windIO turbine YAML file.

Warning

windIO support is experimental. API may change in future versions.

Parameters:
  • path (str or pathlib.Path) – Path to windIO turbine YAML file.

  • resolve (bool, optional) – If True, eagerly resolve all !include markers. Default is False (markers are preserved for lazy resolution).

Returns:

Parsed YAML as nested dictionary. !include directives are preserved as-is (not resolved) unless resolve is True.

Return type:

dict

Raises:
  • FileNotFoundError – If file does not exist.

  • yaml.YAMLError – If YAML parsing fails.

Examples

>>> from windkit.io.windio import read_turbine
>>> data = read_turbine("turbine.yaml")
>>> print(data["assembly"]["rotor_diameter"])
130.0