Skip to content

Commit

Permalink
Merge branch 'master' of github.com:dkoes/rdkit-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoes committed Jun 1, 2018
2 parents b27ea73 + ea82e84 commit 84c012b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rdconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def getRMS(mol, c1,c2):
mol.SetProp("_Name",name);

if options.etkdg:
cids = Chem.EmbedMultipleConfs(mol, int(options.sample*options.maxconfs), Chem.ETKDG(),randomSeed=options.seed)
cids = Chem.EmbedMultipleConfs(mol, int(options.sample*options.maxconfs), Chem.ETKDG())
else:
cids = Chem.EmbedMultipleConfs(mol, int(options.sample*options.maxconfs),randomSeed=options.seed)
if options.verbose:
Expand All @@ -101,8 +101,8 @@ def getRMS(mol, c1,c2):
for conf in cids:
#not passing confID only minimizes the first conformer
if options.nomin:
cenergy.append(cid)
if options.mmff:
cenergy.append(conf)
elif options.mmff:
converged = Chem.MMFFOptimizeMolecule(mol,confId=conf)
mp = Chem.MMFFGetMoleculeProperties(mol)
cenergy.append(Chem.MMFFGetMoleculeForceField(mol,mp,confId=conf).CalcEnergy())
Expand Down Expand Up @@ -143,8 +143,8 @@ def getRMS(mol, c1,c2):
sdwriter.write(mol,conf)
except (KeyboardInterrupt, SystemExit):
raise
except:
print "Exception"
except Exception as e:
print "Exception",e
else:
print "ERROR:",smi

Expand Down

0 comments on commit 84c012b

Please sign in to comment.