def __setstate__(self, state):
        for key in state:
            setattr(self, key, state[key])
Recalls state for items with slots
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/slots.py/HasSlots.__setstate__