Skip to content

Commit

Permalink
Merge pull request #16 from openforcefield/mult_conf
Browse files Browse the repository at this point in the history
Small fix
  • Loading branch information
ChayaSt committed Feb 8, 2019
2 parents fdee239 + a01dfb3 commit 3fa1ef9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions cmiles/_cmiles_oe.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,19 +236,24 @@ def get_map_ordered_geometry(molecule, atom_map):
Parameters
----------
molecule
atom_map
molecule: OEMol with 1 conformer or OEConf
atom_map: dict
map_idx:atom_idx
Returns
-------
symbols: list of str
list of symbols
geometry: list of ints
xyz geometry. List is length N*3
"""

if not molecule.GetDimension() == 3:
raise RuntimeError("Molecule must have 3D coordinates for generating a QCSchema molecule")

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

symbols = []
geometry = []
Expand Down

0 comments on commit 3fa1ef9

Please sign in to comment.