Skip to content

Commit

Permalink
Tests: Test generating conformers w/o RDKit FF energies for some
Browse files Browse the repository at this point in the history
  • Loading branch information
alongd committed Aug 16, 2023
1 parent f7c4336 commit a29cab1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arc/species/conformers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2596,6 +2596,13 @@ def test_cheat_sheet(self):
cheat_mol2 = Molecule(smiles='C')
self.assertIsNone(conformers.cheat_sheet([cheat_mol2]))

def test_conformers_with_xyz_wo_energy(self):
"""Test that ARC can generate conformers even if RDKit cannot compute FF energies (but can suggest xyz)."""
smiles = '[O]OOC=CC#CCO'
mol = Molecule(smiles=smiles)
confs = conformers.generate_conformers(mol_list=[mol], label='spc_1')
self.assertGreater(len(confs), 0)


if __name__ == '__main__':
unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))

0 comments on commit a29cab1

Please sign in to comment.