View Source On Gitee
sponge.colvar.get_atoms(atoms: Union[AtomsBase, List[AtomsBase], Tuple[AtomsBase], Tensor, Parameter, ndarray], batched: bool = False, keep_in_box: bool = False)[source]

get atom(s) or group.

  • atoms (Union[list, tuple, AtomsBase, Tensor, Parameter, ndarray]) – List of atoms.

  • batched (bool) – Whether the first dimension of index is the batch size. Default: False.

  • keep_in_box (bool) – Whether to displace the coordinate in PBC box. Default: False.


atoms (Union[Atoms, Group]), Atoms or group.