Ejemplo n.º 1
0
    def get_ase_structure(self):
        """
        :return: ASE structure corresponding to the cif file.
        """
        from aiida.orm.data.cif import CifData
        import StringIO

        return CifData.read_cif(StringIO.StringIO(self.get_corrected_cif()))
Ejemplo n.º 2
0
    def get_ase_structure(self):
        """
        :return: ASE structure corresponding to the cif file.
        """
        import StringIO
        from aiida.orm.data.cif import CifData

        cif = correct_cif(self.cif)
        return CifData.read_cif(StringIO.StringIO(cif))
Ejemplo n.º 3
0
    def get_ase_structure(self):
        """
        Returns ASE representation of the CIF.

        .. note:: To be removed, as it is duplicated in
            :py:class:`aiida.orm.data.cif.CifData`.
        """
        import StringIO
        from aiida.orm.data.cif import CifData
        return CifData.read_cif(StringIO.StringIO(self.cif))