Fix W data processing

Former-commit-id: e2884d0702f8fc5bd5e6d8c238cb60d13386a515
This commit is contained in:
Marek Nečada 2018-09-19 20:48:28 +03:00
parent 726e5615af
commit e5412da897
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ def processWfiles_sameKs(freqfilenames, destfilename, lMax = None):
if not np.all(ks_current == ks_muster): if not np.all(ks_current == ks_muster):
raise ValueError("%s contains different k-vectors than %s"%(filename, freqfilenames[0])) raise ValueError("%s contains different k-vectors than %s"%(filename, freqfilenames[0]))
curWdata = data[:,5:] curWdata = data[:,5:]
curWs = curWdata[:,::2] + 1j*Wdata[:,1::2] curWs = curWdata[:,::2] + 1j*curWdata[:,1::2]
curWs.shape = (nk_muster, nparticles, nparticles, 2, nelem, nelem) curWs.shape = (nk_muster, nparticles, nparticles, 2, nelem, nelem)
allWs[succread] = curWs allWs[succread] = curWs
cur_freqs_weirdunits = np.array(data[:,0]) cur_freqs_weirdunits = np.array(data[:,0])