get_distance#

get_distance(mol, ind1, ind2)[source]#

Get the distance between two atoms.

Parameters:
  • mol (rdkit.Chem.rdchem.Mol) – RDKit molecule.

  • ind1 (int) – Index of the first atom.

  • ind2 (int) – Index of the second atom.

Returns:

Distance between atoms.

Return type:

float