Skip to content

Commit

Permalink
Merge pull request #1111 from openforcefield/fix-1107
Browse files Browse the repository at this point in the history
Discard other conformers when packing
  • Loading branch information
mattwthompson authored Nov 20, 2024
2 parents dd54049 + 06e6ab2 commit dec585e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openff/interchange/components/_packmol.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,10 @@ def _create_molecule_pdbs(molecules: list[Molecule]) -> list[str]:
# Generate conformers if they're missing
if molecule.n_conformers <= 0:
molecule.generate_conformers(n_conformers=1)
else:
# Possible issues writing multi-conformer PDBs with RDKit
# https://github.com/openforcefield/openff-interchange/issues/1107
molecule._conformers = [molecule.conformers[0]]

# RDKitToolkitWrapper is less buggy than OpenEye for writing PDBs
# See https://github.com/openforcefield/openff-toolkit/issues/1307
Expand Down

0 comments on commit dec585e

Please sign in to comment.