Skip to content

Commit

Permalink
Merge pull request #1 from steineggerlab/main
Browse files Browse the repository at this point in the history
Update OpenMM imports to work with new OpenMM API
  • Loading branch information
sokrypton authored May 10, 2023
2 parents 3d3fdde + 7386194 commit ba597e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions alphafold/relax/amber_minimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
import ml_collections
import numpy as np
import jax
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
Expand Down
4 changes: 2 additions & 2 deletions alphafold/relax/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import io

import pdbfixer
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
2 changes: 1 addition & 1 deletion alphafold/relax/cleanup_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from absl.testing import absltest
from alphafold.relax import cleanup
from simtk.openmm.app.internal import pdbstructure
from openmm.app.internal import pdbstructure


def _pdb_to_structure(pdb_str):
Expand Down

0 comments on commit ba597e0

Please sign in to comment.