Skip to content

Commit 9805b07

Browse files
committed
set min_npoints in __getstate__ and __setstate__
1 parent 70d48c1 commit 9805b07

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

adaptive/learner/average_learner.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,11 @@ def __getstate__(self):
154154
self.function,
155155
self.atol,
156156
self.rtol,
157+
self.min_npoints,
157158
self._get_data(),
158159
)
159160

160161
def __setstate__(self, state):
161-
function, atol, rtol, data = state
162-
self.__init__(function, atol, rtol)
162+
function, atol, rtol, min_npoints, data = state
163+
self.__init__(function, atol, rtol, min_npoints)
163164
self._set_data(data)

0 commit comments

Comments
 (0)