pwtools.crys.center_on_atom

pwtools.crys.center_on_atom(obj_in, idx=None, copy=True)[source]

Shift all coords in obj such that the atom with index idx is at the center of the cell: [0.5,0.5,0.5] fractional coords.