Skip to content

Commit

Permalink
Remove openmm patches
Browse files Browse the repository at this point in the history
  • Loading branch information
jnwei committed Oct 17, 2023
1 parent 4fde713 commit fb34a0c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 70 deletions.
42 changes: 0 additions & 42 deletions lib/openmm.patch

This file was deleted.

16 changes: 4 additions & 12 deletions openfold/np/relax/amber_minimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,10 @@
from openfold.np.relax import cleanup, utils
import ml_collections
import numpy as np
try:
# openmm >= 7.6
import openmm
from openmm import unit
from openmm import app as openmm_app
from openmm.app.internal.pdbstructure import PdbStructure
except ImportError:
# openmm < 7.6 (requires DeepMind patch)
from simtk import openmm
from simtk import unit
from simtk.openmm import app as openmm_app
from simtk.openmm.app.internal.pdbstructure import PdbStructure
import openmm
from openmm import unit
from openmm import app as openmm_app
from openmm.app.internal.pdbstructure import PdbStructure

ENERGY = unit.kilocalories_per_mole
LENGTH = unit.angstroms
Expand Down
10 changes: 2 additions & 8 deletions openfold/np/relax/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,8 @@
import io

import pdbfixer
try:
# openmm >= 7.6
from openmm import app
from openmm.app import element
except ImportError:
# openmm < 7.6 (requires DeepMind patch)
from simtk.openmm import app
from simtk.openmm.app import element
from openmm import app
from openmm.app import element


def fix_pdb(pdbfile, alterations_info):
Expand Down
10 changes: 2 additions & 8 deletions openfold/np/relax/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,8 @@
from openfold.np import residue_constants
from Bio import PDB
import numpy as np
try:
# openmm >= 7.6
from openmm import app as openmm_app
from openmm.app.internal.pdbstructure import PdbStructure
except ImportError:
# openmm < 7.6 (requires DeepMind patch)
from simtk.openmm import app as openmm_app
from simtk.openmm.app.internal.pdbstructure import PdbStructure
from openmm import app as openmm_app
from openmm.app.internal.pdbstructure import PdbStructure


def overwrite_pdb_coordinates(pdb_str: str, pos) -> str:
Expand Down

0 comments on commit fb34a0c

Please sign in to comment.