diff --git a/adaptive/learner/sequence_learner.py b/adaptive/learner/sequence_learner.py index 0f9aa1b38..40ace9d8c 100644 --- a/adaptive/learner/sequence_learner.py +++ b/adaptive/learner/sequence_learner.py @@ -20,8 +20,7 @@ def __init__(self, function, sequence): self.sequence = sequence def __call__(self, index, *args, **kwargs): - point = self.sequence[index] - return self.function(point, *args, **kwargs) + return self.function(self.sequence[index], *args, **kwargs) def __getstate__(self): return self.function, self.sequence