

def __setstate__(self, state):
    self.vertices = state['vertices']
    self.pos = state['pos']
    self.values = state['values']
    self.hemi = state['hemi']
    self.comment = state['comment']
    self.verbose = state['verbose']
    self.subject = state.get('subject', None)
    self.color = state.get('color', None)
    self.name = state['name']
    self.filename = state['filename']

dataset/ETHPy150Open mne-tools/mne-python/mne/label.py Label.__setstate__/original