Skip to content

Commit

Permalink
remove __getstate__ and __setstate__ in _IndexToPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Apr 16, 2020
1 parent ccdbe76 commit 35930c7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions adaptive/learner/sequence_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35930c7

Please sign in to comment.