Skip to content

Commit 777c6d0

Browse files
committed
Use self._original_function when loading from dataframe
1 parent b97ee32 commit 777c6d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adaptive/learner/sequence_learner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def load_dataframe(
216216
self.tell_many(df[[index_name, x_name]].values, df[y_name].values)
217217
if with_default_function_args:
218218
self.function = partial_function_from_dataframe(
219-
self.function, df, function_prefix
219+
self._original_function, df, function_prefix
220220
)
221221

222222
def _get_data(self):

0 commit comments

Comments
 (0)