menpo/landmark/labels.py
def _mask_from_range(range_tuple, n_points):
    r"""
    Generate a mask over the range. The mask will be true inside the range.
    """
    mask = np.zeros(n_points, dtype=np.bool)
    range_slice = slice(*range_tuple)
    mask[range_slice] = True
    return mask
r"""
    Generate a mask over the range. The mask will be true inside the range.
    
r"""
Generate a mask over the range. The mask will be true inside the range.
r " " " Generate a mask over the range . The mask will be true inside the range .
def _mask_from_range(range_tuple, n_points):
    mask = np.zeros(n_points, dtype=np.bool)
    range_slice = slice(*range_tuple)
    mask[range_slice] = True
    return mask
def _mask_from_range ( range_tuple , n_points ) : mask = np . zeros ( n_points , dtype = np . bool ) range_slice = slice ( * range_tuple ) mask [ range_slice ] = True return mask
r"""
Generate a mask over the range.
r " " " Generate a mask over the range .
r"""
    Generate a mask over the range. The mask will be true inside the range.
    """
range_tuple
n_points