"examples/vscode:/vscode.git/clone" did not exist on "fc4da34502ebb0e32ec06df5c4d150d6d663228b"
Commit 7e06ed98 authored by Jennifer Wei's avatar Jennifer Wei
Browse files

support openmm>8 and fix tolerance units in amber minimization

parent 9caf30ae
......@@ -8,7 +8,7 @@ dependencies:
- python=3.10
- setuptools=59.5.0
- pip
- openmm=7.7
- openmm
- pdbfixer
- pytorch-lightning
- biopython
......
......@@ -660,7 +660,7 @@ config = mlc.ConfigDict(
},
"relax": {
"max_iterations": 0, # no max
"tolerance": 2.39,
"tolerance": 10.0,
"stiffness": 10.0,
"max_outer_iterations": 20,
"exclude_residues": [],
......
......@@ -34,6 +34,7 @@ from openmm import app as openmm_app
from openmm.app.internal.pdbstructure import PdbStructure
ENERGY = unit.kilocalories_per_mole
FORCE = unit.kilojoules_per_mole / unit.nanometer
LENGTH = unit.angstroms
......@@ -439,7 +440,7 @@ def _run_one_iteration(
exclude_residues = exclude_residues or []
# Assign physical dimensions.
tolerance = tolerance * ENERGY
tolerance = tolerance * FORCE
stiffness = stiffness * ENERGY / (LENGTH ** 2)
start = time.perf_counter()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment