def __next__(self):
    ' This changes the inverse table by removing hits.\n\n    Returns a (Whisker_Seg, index),(Whisker_Seg, index)...  tuple\n            or None, if done.\n    '
    todelete = []
    retval = None
    for (px, s) in self._map.items():
        todelete.append(px)
        if (len(s) > 1):
            retval = s
            break
    for k in todelete:
        del self._map[k]
    return retval
This changes the inverse table by removing hits.

Returns a (Whisker_Seg, index),(Whisker_Seg, index)...  tuple
        or None, if done.
def __next__(self):
    ' This changes the inverse table by removing hits.\n\n    Returns a (Whisker_Seg, index),(Whisker_Seg, index)...  tuple\n            or None, if done.\n    '
    todelete = []
    retval = None
    for (px, s) in self._map.items():
        todelete.append(px)
        if (len(s) > 1):
            retval = s
            break
    for k in todelete:
        del self._map[k]
    return retval