Skip to content

Commit

Permalink
Add explicit hydrogens kwarg to OpenFF export in SmallMoleculeComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
dotsdl committed Jan 21, 2025
1 parent d472237 commit 2086718
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gufe/components/smallmoleculecomponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ def to_openff(self):
"""
from openff.toolkit.topology import Molecule as OFFMolecule

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

return m
Expand Down

0 comments on commit 2086718

Please sign in to comment.