Example #1
0
    def index2l(self,index):
        '''
        Get lattice indices (n1,n2,...,atom index in cell) from site index.

        index:
            the site index.
        '''
        return ind2c(index,N=self.siteconfig)
Example #2
0
    def ind2c(self, index):
        """
        Parse index into space len-4 config indices like (nambui,spini,atomi,orbiti).

        index:
            the index(0 ~ ndim-1).
        """
        return ind2c(index, N=self.config)