Skip to content

Commit 4cf4a54

Browse files
committed
delay setting of coefficients
1 parent d748cc7 commit 4cf4a54

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

adaptive/learner/integrator_coeffs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,8 @@ def calc_V(x, n):
148148

149149
class Coefficients:
150150
def __init__(self) -> None:
151-
self.is_set = False
152151
# The nodes
153152
self.ns = (5, 9, 17, 33)
154-
self.eps = np.spacing(1)
155153

156154
# If the relative difference between two consecutive approximations is
157155
# lower than this value, the error estimate is considered reliable.
@@ -162,6 +160,7 @@ def __init__(self) -> None:
162160
# such that no artifacts are apparent in plots of (i, log(a_i)), where a_i is
163161
# the sequence of estimates of the integral value of an interval and all its
164162
# ancestors..
163+
self.eps = np.spacing(1)
165164
self.min_sep = 16 * self.eps
166165

167166
# Maximum amount of subdivisions

0 commit comments

Comments
 (0)