"""Molecule Mapping using networkx"""importdataclassesimporttypingastimportasefromipsuite.geometryimportbarycenter_coarse_grain,graphs,unwrap
[docs]@dataclasses.dataclassclassBarycenterMapping:"""Node that "coarse grains" each molecule in a configuration into its center of mass. Useful for operations affecting intermolecular distance, but not intramolecular distances. `Mapping` nodes can be used in a more functional manner when initialized with `data=None` outside the project graph. In that case, one can use the mapping methods but the Node itself does not store the transformed configurations. Attributes ---------- frozen: bool If True, the neighbor list is only constructed for the first configuration. The indices of the molecules will be frozen for all configurations. cutoffs: dict[str, float] | None cutoffs of each element. Dictionary with keys for the symbols and values of the cutoff radii. If None, use the `ase.data.covalent_radii`. Default: None """frozen:bool=Falsecutoffs:dict[str,float]|None=None_components:t.Any|None=None