mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 12:23:41 +01:00
[py3] In Python3 xrange was replaced by range
This commit is contained in:
parent
0598b5f0a4
commit
2b673f7926
@ -142,7 +142,7 @@ class ElectronicStructure:
|
||||
## Construct a map to access coordinates by index
|
||||
# self.structure['ion_index'] = []
|
||||
# for isort, nq in enumerate(self.structure['nq_types']):
|
||||
# for iq in xrange(nq):
|
||||
# for iq in range(nq):
|
||||
# self.structure['ion_index'].append((isort, iq))
|
||||
|
||||
|
||||
|
@ -335,7 +335,7 @@ class ProjectorGroup:
|
||||
1. Orthogonality is ensured on each site (NORMION = True).
|
||||
For each site 'ion' we have the following mapping:
|
||||
|
||||
block_maps = [bl_map[ion] for ion in xrange(shell.nion)
|
||||
block_maps = [bl_map[ion] for ion in range(shell.nion)
|
||||
for shell in shells]
|
||||
|
||||
bl_map = [((i1_start, i1_end), (i1_shell, ion)),
|
||||
|
@ -262,7 +262,7 @@ class ProjectorShell:
|
||||
for ip, par in enumerate(proj_params):
|
||||
if par['isite'] - 1 == ion and par['l'] == self.lorb and par['m'] == m:
|
||||
self.proj_arr[io, :, :, m, :] = proj_raw[ip, :, :, :]
|
||||
# for ik in xrange(nk):
|
||||
# for ik in range(nk):
|
||||
# kp = kmesh['kpoints'][ik]
|
||||
## kphase = np.exp(-2.0j * np.pi * np.dot(kp, qcoord))
|
||||
# kphase = 1.0
|
||||
|
@ -435,7 +435,7 @@ class Poscar:
|
||||
|
||||
# print
|
||||
# print " Coords:"
|
||||
# for it in xrange(ntypes):
|
||||
# for it in range(ntypes):
|
||||
# print " Element:", el_names[it]
|
||||
# print q_at[it]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user