def get_center(self, mass=True):
    '\n        Get coordinates of molecule center at each frame.\n\n        Parameters\n        ----------\n        mass : bool\n            Calculate center of mass (True) or geometric center (False).\n\n        Returns\n        -------\n        ndarray\n            Molecule center coordinates for each frame.\n\n        '
    centers = np.empty((len(self.atoms), 3))
    for (f, (frame_atoms, frame_coors)) in enumerate(zip(self.atoms, self.coordinates)):
        centers[f] = get_molecule_center(frame_atoms, frame_coors, mass=mass)
    return centers
Get coordinates of molecule center at each frame.

Parameters
----------
mass : bool
    Calculate center of mass (True) or geometric center (False).

Returns
-------
ndarray
    Molecule center coordinates for each frame.
def get_center(self, mass=True):
    '\n        Get coordinates of molecule center at each frame.\n\n        Parameters\n        ----------\n        mass : bool\n            Calculate center of mass (True) or geometric center (False).\n\n        Returns\n        -------\n        ndarray\n            Molecule center coordinates for each frame.\n\n        '
    centers = np.empty((len(self.atoms), 3))
    for (f, (frame_atoms, frame_coors)) in enumerate(zip(self.atoms, self.coordinates)):
        centers[f] = get_molecule_center(frame_atoms, frame_coors, mass=mass)
    return centers