def apply_cooling(enduse, fuel_y, cooled_floorarea, cooled_floorarea_p_by,
    curr_yr):
    """Apply changes for cooling enduses depending
    on assumption of how much of the floor area in percent
    is cooled

    It is aassumption a linear correlation between the
    percentage of cooled floor space (area) and energy demand.

    Arguments
    ---------
    enduse : str
        Enduse
    fuel_y : array
        Annual fuel demand
    cooled_floorarea : dict
        Strategy variables
    cooled_floorarea_p_by : dict
        Assumption about cooling floor area in base year
    curr_yr : int
        Current year

    Returns
    -------
    fuel_y : array
        Fuel array (either changed fuel depending on cooling percentage)
        of identical array
    """
    try:
        cooled_floorarea_p_cy = cooled_floorarea[enduse][curr_yr]
        floorarea_cooling_factor = (cooled_floorarea_p_cy /
            cooled_floorarea_p_by)
        fuel_y = fuel_y * floorarea_cooling_factor
    except KeyError:
        pass
    return fuel_y
