

def __repr__(self):
    temp = '<BiHemiLabel  |  %s, lh : %i vertices,  rh : %i vertices>'
    name = ('unknown, ' if (self.subject is None) else (self.subject + ', '))
    name += (repr(self.name) if (self.name is not None) else 'unnamed')
    return (temp % (name, len(self.lh), len(self.rh)))

dataset/ETHPy150Open mne-tools/mne-python/mne/label.py BiHemiLabel.__repr__/original