def full_electronic_structure(self):
        """
        Full electronic structure as tuple.
        E.g., The electronic structure for Fe is represented as:
        [(1, "s", 2), (2, "s", 2), (2, "p", 6), (3, "s", 2), (3, "p", 6),
        (3, "d", 6), (4, "s", 2)]
        """
        estr = self._data["Electronic structure"]

        def parse_orbital(orbstr):
            m = re.match(r"(\d+)([spdfg]+)<sup>(\d+)</sup>", orbstr)
            if m:
                return int(m.group(1)), m.group(2), int(m.group(3))
            return orbstr

        data = [parse_orbital(s) for s in estr.split(".")]
        if data[0][0] == "[":
            sym = data[0].replace("[", "").replace("]", "")
            data = Element(sym).full_electronic_structure + data[1:]
        return data
def full_electronic_structure ( self ) : estr = self . _data [ "Electronic structure" ] def parse_orbital ( orbstr ) : m = re . match ( r"(\d+)([spdfg]+)<sup>(\d+)</sup>" , orbstr ) if m : return int ( m . group ( 1 ) ) , m . group ( 2 ) , int ( m . group ( 3 ) ) return orbstr data = [ parse_orbital ( s ) for s in estr . split ( "." ) ] if data [ 0 ] [ 0 ] == "[" : sym = data [ 0 ] . replace ( "[" , "" ) . replace ( "]" , "" ) data = Element ( sym ) . full_electronic_structure + data [ 1 : ] return data
Full electronic structure as tuple.
        E.g., The electronic structure for Fe is represented as:
        [(1, "s", 2), (2, "s", 2), (2, "p", 6), (3, "s", 2), (3, "p", 6),
        (3, "d", 6), (4, "s", 2)]