Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
philopon committed Feb 26, 2019
1 parent 8962a38 commit 1720cf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mordred/_base/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ def from_query(cls, mol, require_3D, explicit_hydrogens, kekulizes, id):
if mol.HasProp("_Name"):
name = mol.GetProp("_Name")
else:
name = Chem.MolToSmiles(Chem.RemoveHs(mol))
name = Chem.MolToSmiles(Chem.RemoveHs(mol, updateExplicitCount=True))

mols, coords = {}, {}

for eh, ke in ((eh, ke) for eh in explicit_hydrogens for ke in kekulizes):
m = Chem.AddHs(mol) if eh else Chem.RemoveHs(mol)
m = Chem.AddHs(mol) if eh else Chem.RemoveHs(mol, updateExplicitCount=True)

if ke:
Chem.Kekulize(m)
Expand Down

0 comments on commit 1720cf3

Please sign in to comment.