Skip to content

Commit 3c1c4ae

Browse files
authored
Update test_optimization.py (glotaran#404)
This fixes some failing optimization test due to a change in lmfit 1.0.1, where the argument ``max_nfev`` was changed slightly with the intention to uniformly specify the maximum number of function evalutions (see lmfit PR 610), this effectively reduces the number of iteration that were run resulting in a failure to converge within the fixed number of iterations.
1 parent 5466097 commit 3c1c4ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glotaran/analysis/test/test_optimization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def id():
221221
assert dataset.data.shape == (cal_axis.size, est_axis.size)
222222

223223
data = {'dataset1': dataset}
224-
scheme = Scheme(model=model, parameter=initial, data=data, nfev=5)
224+
scheme = Scheme(model=model, parameter=initial, data=data, nfev=10)
225225

226226
result = optimize(scheme)
227227
print(result.optimized_parameter)

0 commit comments

Comments
 (0)