openYaml#
- pyCGM2.Utils.files.openYaml(path: str, filename: str)#
Open a YAML file and return its contents as a dictionary.
- Parameters:
path (str) – The directory path where the file is located.
filename (str) – The YAML filename.
- Returns:
dict – The contents of the YAML file.
- Raises:
Exception – If there is a YAML syntax error.