Skip to content

Commit

Permalink
fixup to_openmm_positions
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjgowers committed Dec 20, 2023
1 parent 4e91467 commit 8658083
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions gufe/components/proteincomponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,9 @@ def to_openmm_positions(self) -> "openmm.app.unit.Quantity":
"""
from openmm import unit as omm_unit

np_pos = deserialize_numpy(self.to_dict()["conformers"][0])
openmm_pos = (
list(map(lambda x: np.array(x), np_pos)) * omm_unit.angstrom
)
np_pos = self._rdkit.GetConformer().GetPositions()

return openmm_pos
return np_pos * omm_unit.angstrom

def to_pdb_file(self, out_path: Union[str, bytes, PathLike[str], PathLike[bytes], io.TextIOBase]) -> str:
"""Write protein to pdb file.
Expand Down

0 comments on commit 8658083

Please sign in to comment.