Skip to content

Commit

Permalink
Merge pull request #25 from openforcefield/stereo-fix
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
ChayaSt authored May 16, 2019
2 parents b739bad + 868d522 commit b74d5dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmiles/_cmiles_oe.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def get_map_ordered_geometry(molecule, atom_map):
if not molecule.GetDimension() == 3:
raise RuntimeError("Molecule must have 3D coordinates for generating a QCSchema molecule")

if isinstance(molecule, oechem.OEMolBase):
if isinstance(molecule, oechem.OEMol):
if molecule.GetMaxConfIdx() != 1:
raise Warning("The molecule must have at least and at most 1 conformation")

Expand Down Expand Up @@ -359,6 +359,8 @@ def has_stereo_defined(molecule):

# perceive stereochemistry
oechem.OEPerceiveChiral(molecule)
oechem.OE3DToAtomStereo(molecule)
oechem.OE3DToBondStereo(molecule)

unspec_chiral = False
unspec_db = False
Expand Down

0 comments on commit b74d5dd

Please sign in to comment.