Skip to content

Commit

Permalink
Update OpenMM imports to work with new OpenMM API
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Apr 29, 2023
1 parent 41807ea commit 7386194
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setup(
name='alphafold-colabfold',
version='2.3.4',
version='2.3.5',
long_description_content_type='text/markdown',
description='An implementation of the inference pipeline of AlphaFold v2.3.1. '
'This is a completely new model that was entered as AlphaFold2 in CASP14 '
Expand Down

0 comments on commit 7386194

Please sign in to comment.