Skip to content

Commit

Permalink
Replace numpy.lib.pad with numpy.pad
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Jun 21, 2024
1 parent 792abcb commit f134fc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/triqs_dft_tools/converters/elk.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def update_so_quatities(self,n_shells,shells,n_corr_shells,corr_shells,n_inequiv
#extra array elements in each dimension
size=2*corr_shells[ish]['l']+1
#extend the arrays
T[ish]=numpy.lib.pad(T[ish],((0,size),(0,size)),'constant',constant_values=(0.0))
T[ish]=numpy.pad(T[ish],((0,size),(0,size)),'constant',constant_values=(0.0))
#make block diagonal
T[ish][size:2*size,size:2*size]=T[ish][0:size,0:size]
#update the symmetries arrays if needed
Expand All @@ -209,7 +209,7 @@ def update_so_quatities(self,n_shells,shells,n_corr_shells,corr_shells,n_inequiv
spinmat = numpy.zeros([size,2,size,2],complex)
for isym in range(n_symm):
#expand size of array
mat[isym][ish]=numpy.lib.pad(mat[isym][ish],((0,size),(0,size)),'constant',constant_values=(0.0))
mat[isym][ish]=numpy.pad(mat[isym][ish],((0,size),(0,size)),'constant',constant_values=(0.0))
#make arraye block diagonal
mat[isym][ish][size:2*size,size:2*size]=mat[isym][ish][0:size,0:size]
#apply SU(2) spin matrices to lm symmetries
Expand Down

0 comments on commit f134fc8

Please sign in to comment.