choderalab / perses

Experiments with expanded ensembles to explore chemical space
http://perses.readthedocs.io
MIT License
180 stars 51 forks source link

Fix feptasks.minimize()'s minimisation_steps argument #1086

Open zhang-ivy opened 2 years ago

zhang-ivy commented 2 years ago

minimisation_steps, an argument to feptasks.minimize() , currently matches the openmm LocalEnergyMinimizer.minimize() argument maxIterations in that when its equal to 0, it will run as many steps of minimization as needed, not zero steps.

minimisation_steps should work like this instead:

See thread: https://github.com/choderalab/perses/pull/1065#discussion_r948027635

related: https://github.com/choderalab/perses/issues/1083

ijpulidos commented 1 year ago

Even if this is a minor change, this is an API breaking one. I think we should leave it to the next milestone release, where many API breaking changes will happen. We also need a docstring for the HybridCompatibilityMixin.setup method, I'll open a new issue for that one.