import yaml


def get_boundary_from_config(path_to_config_file):
    """Load the boundary of the simulated area from config file. """

    with open(path_to_config_file) as file:
        config = yaml.load(file, Loader=yaml.FullLoader)

        lon_min = config["area_config"]["lon_min"]
        lon_max = config["area_config"]["lon_max"]
        lat_min = config["area_config"]["lat_min"]
        lat_max = config["area_config"]["lat_max"]

        return (lon_min, lon_max, lat_min, lat_max)