def calc_wetted_fraction(canopyStore, canopyStore_max, gamma):
    ' Calculate the wetted fraction of the canopy\n\n    Parameters\n    ----------\n    canopyStore : int or float\n        Canopy Interception storage [mm]\n    canopyStore_max : int or float\n        Maximum non-drainable canopy interception storage [mm]\n    gamma : float\n        Parameter to account for the non-linearity in the wetted fraction of the canopy\n\n    Returns\n    -------\n    wetFrac: float\n        Wetted fraction of the canopy\n    '
    if (canopyStore < canopyStore_max):
        wetFrac = ((canopyStore / canopyStore_max) ** gamma)
    else:
        wetFrac = 1.0
    return wetFrac
Calculate the wetted fraction of the canopy

Parameters
----------
canopyStore : int or float
    Canopy Interception storage [mm]
canopyStore_max : int or float
    Maximum non-drainable canopy interception storage [mm]
gamma : float
    Parameter to account for the non-linearity in the wetted fraction of the canopy

Returns
-------
wetFrac: float
    Wetted fraction of the canopy
def calc_wetted_fraction(canopyStore, canopyStore_max, gamma):
    ' Calculate the wetted fraction of the canopy\n\n    Parameters\n    ----------\n    canopyStore : int or float\n        Canopy Interception storage [mm]\n    canopyStore_max : int or float\n        Maximum non-drainable canopy interception storage [mm]\n    gamma : float\n        Parameter to account for the non-linearity in the wetted fraction of the canopy\n\n    Returns\n    -------\n    wetFrac: float\n        Wetted fraction of the canopy\n    '
    if (canopyStore < canopyStore_max):
        wetFrac = ((canopyStore / canopyStore_max) ** gamma)
    else:
        wetFrac = 1.0
    return wetFrac