xnn.ffnn.models.amoebalib.write_tinker_xyz#

xnn.ffnn.models.amoebalib.write_tinker_xyz(path, positions, types, bonds, type_numbers, symbols=None, title='xnn', cell=None)[source]#

Write a Tinker .xyz coordinate file.

Parameters:
  • path (str or Path) – Output path.

  • positions (array_like) – Cartesian coordinates (N, 3) in Angstrom.

  • types (sequence of str) – Per-atom type names of the library.

  • bonds (sequence of (int, int)) – The connectivity.

  • type_numbers (dict) – {type name: int} as returned by write_tinker_prm().

  • symbols (sequence of str, optional) – Atom names (element symbols by default).

  • title (str, optional) – Title written after the atom count.

  • cell (sequence of float, optional) – The six lattice parameters a b c alpha beta gamma for a periodic system.

Returns:

The written file.

Return type:

Path