Remove descents-ascents that have no corresponding ascent-descent

    Args
    ----
    des_mask: ndarray
        Boolean mask of descents in the depth data
    asc_mask: ndarray
        Boolean mask of ascents in the depth data

    Returns
    -------
    des_mask: ndarray
        Boolean mask of descents with erroneous regions removed
    asc_mask: ndarray
        Boolean mask of ascents with erroneous regions removed

def rm_incomplete_des_asc(des_mask, asc_mask):
    '''Remove descents-ascents that have no corresponding ascent-descent

    Args
    ----
    des_mask: ndarray
        Boolean mask of descents in the depth data
    asc_mask: ndarray
        Boolean mask of ascents in the depth data

    Returns
    -------
    des_mask: ndarray
        Boolean mask of descents with erroneous regions removed
    asc_mask: ndarray
        Boolean mask of ascents with erroneous regions removed
    '''
    from . import utils

    # Get start/stop indices for descents and ascents
    des_start, des_stop = utils.contiguous_regions(des_mask)
    asc_start, asc_stop = utils.contiguous_regions(asc_mask)

    des_mask = utils.rm_regions(des_mask, asc_mask, des_start, des_stop)
    asc_mask = utils.rm_regions(asc_mask, des_mask, asc_start, asc_stop)

    return des_mask, asc_mask