symmetry_exposed#
- irmsd.bindings.symmetry_exposed.get_symmetry_elements_fortran_raw(natoms: int, types: ndarray, coords_flat: ndarray, threshold: float, primary_threshold: float, max_axis_order: int, max_opt_cycles: int) tuple[str, dict[str, ndarray]][source]#
Direct call to Fortran
get_symmetry_elements_fortran.- Parameters:
natoms
types
coords_flat
threshold
primary_threshold
max_axis_order
:param : :param max_opt_cycles: As in
get_symmetry_fortran_raw().- Returns:
symbol (
str) – Schoenflies symbol.elements (
dictofndarray) – Arrays over the nel elements, lengths in Angstrom:type(nel,) int32, 1=mirror, 2=inversion, 3=rotation, 4=improper rotation;order(nel,) int32, 0 for Cinf;matrix(nel,3,3) andtranslation(nel,3) with x’ = R x + t;axis,point(nel,3);maxdev(nel,);permutation(nel,natoms) int32, 0-based image of each atom.
- irmsd.bindings.symmetry_exposed.get_symmetry_fortran_raw(natoms: int, types: ndarray, coords_flat: ndarray, threshold: float, primary_threshold: float, max_axis_order: int, max_opt_cycles: int) str[source]#
Direct call to Fortran
get_symmetry_fortran.- Parameters:
natoms (
int) – Must match the array lengths.types (
(natoms,) int32,C-contiguous) – Atomic numbers (or type IDs).coords_flat (
(3*natoms,) float64,C-contiguous) – [x1, y1, z1, x2, …] in Angstrom.threshold (
float) – Final and atom-pairing symmetry tolerances, in Bohr.primary_threshold (
float) – Final and atom-pairing symmetry tolerances, in Bohr.max_axis_order (
int) – Highest axis order searched; optimization cycles per element.max_opt_cycles (
int) – Highest axis order searched; optimization cycles per element.
- Returns:
Schoenflies symbol, e.g. “C2v”.
- Return type:
- Raises:
TypeError – On wrong dtype or non-contiguous arrays.
ValueError – If array lengths disagree with natoms.