

def _verify_all_labels_masked(self):
    '\n        Verify that every point in the pointcloud is associated with a label.\n        If any one point is not covered by a label, then raise a\n        ``ValueError``.\n        '
    labels_values = list(self._labels_to_masks.values())
    unlabelled_points = (np.sum(labels_values, axis=0) == 0)
    if np.any(unlabelled_points):
        nonzero = np.nonzero(unlabelled_points)
        raise ValueError('Every point in the landmark pointcloud must be labelled. Points {0} were unlabelled.'.format(nonzero))

dataset/ETHPy150Open menpo/menpo/menpo/landmark/base.py LandmarkGroup._verify_all_labels_masked/original