chemcoord.Cartesian.get_bond_lengths¶
-
Cartesian.
get_bond_lengths
(indices)¶ Return the distances between given atoms.
Calculates the distance between the atoms with indices
i
andb
. The indices can be given in three ways:- As simple list
[i, b]
- As list of lists:
[[i1, b1], [i2, b2]...]
- As
pd.DataFrame
wherei
is taken from the index andb
from the respective column'b'
.
Parameters: indices (list) – Returns: Vector of angles in degrees. Return type: numpy.ndarray
- As simple list