Utils : Files helper functions

dict_to_yaml(dict, file_path)

Write a dictionary to a yaml file.

Arguments

dict : dict
    dictionary to write to the yaml file
file_path : str
    path to the yaml file

Returns

None

yaml_to_dict(file_path)

Open a config file and return a dictionary containing the configuration.

Arguments

file_path : str
    path to the yaml file

Returns

config : dict
    dictionary containing the date from the yaml file