From 35930c7a7ae7c6dc19d788f7ec5ef4a569961001 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Thu, 16 Apr 2020 16:47:58 +0200 Subject: [PATCH] remove __getstate__ and __setstate__ in _IndexToPoint --- adaptive/learner/sequence_learner.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/adaptive/learner/sequence_learner.py b/adaptive/learner/sequence_learner.py index 40ace9d8c..890253a76 100644 --- a/adaptive/learner/sequence_learner.py +++ b/adaptive/learner/sequence_learner.py @@ -22,12 +22,6 @@ def __init__(self, function, sequence): def __call__(self, index, *args, **kwargs): return self.function(self.sequence[index], *args, **kwargs) - def __getstate__(self): - return self.function, self.sequence - - def __setstate__(self, state): - self.__init__(*state) - class SequenceLearner(BaseLearner): r"""A learner that will learn a sequence. It simply returns