def __setstate__(self, statedict):
        super(HasLogger, self).__setstate__(statedict)
        if '_logger' in statedict:
            # If we re-instantiate the component the logger attribute only contains a name,
            # so we also need to re-create the logger:
            self._set_logger(statedict['_logger'])
Called after loading a pickle dump.
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/pypetlogging.py/HasLogger.__setstate__