xnn.ffnn.models.gfnfflib.Img#

class xnn.ffnn.models.gfnfflib.Img(i, s=(0, 0, 0))[source]#

Bases: int

A folded atom index of a periodic structure with the lattice shift of its image: it compares, hashes and indexes as the atom of the unit cell, and positions taken through Positions include the shift.

moved(s)[source]#

The same atom in the image shifted by the lattice vector s.