determine_bonds_rdkit#

determine_bonds_rdkit(mol, charge=0, verbose=False)[source]#

Determine bond orders with RDKit, or None if failed.

Parameters:
  • mol (rdkit.Chem.Mol) – RDKit molecule that needs to be updated

  • charge (int) – Set the charge of the molecule when determining the bond orders

  • verbose (bool, optional, default=False) – If True and an error in bond determination occurs, the primary traceback is printed.

Returns:

mol – New RDKit molecule from rdkit determination of bond orders. Note that atom properties may have been lost. Returns None if bond determination failed.

Return type:

rdkit.Chem.Mol