@classmethod
def fromASE(cls, aseg):
    """ Returns geometry from an ASE object.

        Parameters
        ----------
        aseg : ASE ``Atoms`` object which contains the following routines:
            ``get_atomic_numbers``, ``get_positions``, ``get_cell``.
            From those methods a `Geometry` object will be created.
        """
    Z = aseg.get_atomic_numbers()
    xyz = aseg.get_positions()
    cell = aseg.get_cell()
    return cls(xyz, atom=Z, sc=cell)
