Skip to content

Commit

Permalink
fixes openfe OpenFreeEnergy#278
Browse files Browse the repository at this point in the history
related to off tk #1563
  • Loading branch information
richardjgowers committed Apr 27, 2023
1 parent 7de1283 commit a0744ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gufe/components/smallmoleculecomponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,13 @@ def _from_sdf_supplier(cls, supp):
def to_openff(self):
"""OpenFF Toolkit representation of this molecule"""
from openff.toolkit.topology import Molecule as OFFMolecule
m = self.to_rdkit()

m = OFFMolecule(self._rdkit, allow_undefined_stereo=True)
# see openfe #278 / openff tk #1563
Chem.Kekulize(m)
Chem.SetAromaticity(m, Chem.AromaticityModel.AROMATICITY_MDL)

m = OFFMolecule(m, allow_undefined_stereo=True)
m.name = self.name

return m
Expand Down

0 comments on commit a0744ca

Please sign in to comment.