Skip to content

Commit

Permalink
Merge pull request #425 from choderalab/patch_maximum_iterations
Browse files Browse the repository at this point in the history
Forward maximum_iterations from MBAR constructor
  • Loading branch information
Lnaden committed Aug 12, 2021
2 parents 3c4262c + bbadb5b commit 2d8401f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pymbar/mbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def __init__(self, u_kn, N_k, maximum_iterations=10000, relative_tolerance=1.0e-
for solver in solver_protocol:
if 'options' not in solver:
solver['options'] = dict()
solver['options']['maximum_iterations'] = maximum_iterations
if 'verbose' not in solver['options']:
# should add in other ways to get information out of the scipy solvers, not just adaptive,
# which might involve passing in different combinations of options, and passing out other strings.
Expand Down
2 changes: 1 addition & 1 deletion pymbar/mbar_solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def adaptive(u_kn, N_k, f_k, tol = 1.0e-12, options = None):
"""
# put the defaults here in case we get passed an 'options' dictionary that is only partial
options.setdefault('verbose',False)
options.setdefault('maximum_iterations',250)
options.setdefault('maximum_iterations',10000)
options.setdefault('print_warning',False)
options.setdefault('gamma',1.0)

Expand Down

0 comments on commit 2d8401f

Please sign in to comment.