cn_exposed#

irmsd.api.cn_exposed.get_cn_fortran(atom_numbers: ndarray, positions: ndarray) → ndarray[source]#

Core API: call the Fortran routine to calculate CN

Parameters:
  • atom_numbers ((N,) int32-like) – Atomic numbers (or types).

  • positions ((N, 3) float64-like) – Cartesian coordinates in Å.

Returns:

cn – array with coordination numbers

Return type:

(N) float64 ndarray

Raises:

ValueError – If positions does not have shape (N, 3).