Skip to content

Commit 90846d6

Browse files
committed
add additional note for setting curve_fit tolerance
1 parent ce857ee commit 90846d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fooof/objs/fit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ def __init__(self, peak_width_limits=(0.5, 12.0), max_n_peaks=np.inf, min_peak_h
201201
# The maximum number of calls to the curve fitting function
202202
self._maxfev = 5000
203203
# The tolerance setting for curve fitting (see scipy.curve_fit - ftol / xtol / gtol)
204+
# Here reduce tolerance to speed fitting. Set value to 1e-8 to match curve_fit default
204205
self._tol = 0.00001
205206

206207
## RUN MODES

0 commit comments

Comments
 (0)