

def items_matching(self, glob_pattern):
    "\n        Yield only items ``(group, LandmarkGroup)`` where the key matches a\n        given glob.\n\n        Parameters\n        ----------\n        glob_pattern : `str`\n            A glob pattern e.g. 'frontal_face_*'\n\n        Yields\n        ------\n        item : ``(group, LandmarkGroup)``\n            Tuple of group, LandmarkGroup where the group matches the glob\n        "
    for (k, v) in self.items():
        if fnmatch.fnmatch(k, glob_pattern):
            (yield (k, v))

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