"""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. """frozen:bool=False_components:t.Any|None=None