@staticmethod
def current_coordinates(atomgroup, atomselection, updating):
    """Retrieves the current coordinates of all atoms in the chosen atom
        selection.
        Note: currently required to allow for updating selections"""
    ag = atomgroup if not updating else atomgroup.select_atoms(atomselection)
    return ag.positions
