aim2dat.io.yaml

Input and output operations for yaml-files formated according to YAML 1.2 based on ruamel.yaml.

Module Contents

Functions

load_yaml_file(file_path[, typ])

Load a yaml-file and returns the content.

store_in_yaml_file(file_name, content)

Load a yaml-file and returns the content.

aim2dat.io.yaml.load_yaml_file(file_path, typ='safe')[source]

Load a yaml-file and returns the content.

Parameters:
  • file_path (str) – Path to the yaml-file.

  • typ (str (optional)) – Typ used to load the yaml-file.

Returns:

data – Content of the file.

aim2dat.io.yaml.store_in_yaml_file(file_name, content)[source]

Load a yaml-file and returns the content.

Parameters:
  • file_name (str) – Path to the yaml-file.

  • content – Content of the file.