Skip to content

Commit

Permalink
check if conformer is a molecule
Browse files Browse the repository at this point in the history
  • Loading branch information
ChayaSt committed May 16, 2019
1 parent a49cbbc commit 868d522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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

0 comments on commit 868d522

Please sign in to comment.