import yaml


def read_parameter_file(parameter_file_path: str) -> dict:
    """
    Reads the parameters from a yaml file into a dictionary.

    Parameters
    ----------
    parameter_file_path: Path to a parameter file.

    Returns
    -------
    params: Dictionary containing the parameters defined in the provided yam file
    """

    with open(parameter_file_path, 'r') as f:
        params = yaml.safe_load(f)
    return params