

def __delitem__(self, label):
    '\n        Delete the semantic labelling for the provided label.\n\n         .. note::\n\n             You cannot delete a semantic label and leave the landmark group\n             partially unlabelled. Landmark groups must contain labels for\n             every point.\n\n        Parameters\n        ---------\n        label : `string`\n            The label to remove.\n\n        Raises\n        ------\n        ValueError\n            If deleting the label would leave some points unlabelled\n        '
    value_to_delete = self._labels_to_masks.pop(label)
    try:
        self._verify_all_labels_masked()
    except ValueError as e:
        self._labels_to_masks[label] = value_to_delete
        raise self

dataset/ETHPy150Open menpo/menpo/menpo/landmark/base.py LandmarkGroup.__delitem__/VarMisuse@53/233 `e`->`self`