import yaml


def read_vibdata(vib_file):
    """Reads a yaml file containing the
    vribational frequencies from a DFT calculation.

    Parameters
    ----------
    vib_file : (:py:attr:`str`):
        File name

    Returns
    -------
    vib_prop : :py:attr:`dict`
        Dictionary of vibrational freqencies.
    """
    with open(vib_file, 'r') as file:
        vib_prop = yaml.load(file, Loader=yaml.FullLoader)
    return vib_prop