From 3ff06e51e2fe9b252222f6f275f2ffc89b67f6e1 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Fri, 21 Jun 2024 12:01:06 -0400 Subject: [PATCH] Replace numpy.lib.pad with numpy.pad --- python/triqs_dft_tools/converters/elk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/triqs_dft_tools/converters/elk.py b/python/triqs_dft_tools/converters/elk.py index ce962c18..27bfc3b8 100644 --- a/python/triqs_dft_tools/converters/elk.py +++ b/python/triqs_dft_tools/converters/elk.py @@ -197,7 +197,7 @@ class ElkConverter(ConverterTools,Elk_tools,read_Elk): #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 @@ -209,7 +209,7 @@ class ElkConverter(ConverterTools,Elk_tools,read_Elk): 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