

def __getitem__(self, group=None):
    '\n        Returns the group for the provided label.\n\n        Parameters\n        ---------\n        group : `string`, optional\n            The label of the group. If None is provided, and if there is only\n            one group, the unambiguous group will be returned.\n        Returns\n        -------\n        lmark_group : :map:`LandmarkGroup`\n            The matching landmark group.\n        '
    if (group is None):
        if (self.n_groups == 1):
            group = self.group_labels[0]
        else:
            raise ValueError('Cannot use None as a key as there are {} landmark groups'.format(self.n_groups))
    return self._landmark_groups[group]

dataset/ETHPy150Open menpo/menpo/menpo/landmark/base.py LandmarkManager.__getitem__/original