def __setstate__(self, state): self.attrs = state['attrs'] self.power = BinnedStatistic.from_state(state['power']) if state['poles'] is not None: self.poles = BinnedStatistic.from_state(state['poles'])
def __setstate__(self, state): self.attrs = state['attrs'] self.poles = BinnedStatistic.from_state(state['poles'])