fix k loading in loadWfile

Former-commit-id: 93cc473f2bfd4229a5290ede85b3cd4b78b50694
This commit is contained in:
Marek Nečada 2018-05-17 20:15:08 +03:00
parent 6049c8425f
commit 7c55453287
1 changed files with 1 additions and 1 deletions

View File

@ -762,7 +762,7 @@ def loadWfile(fileName, lMax = None, fatForm = True):
# maybe TODO copy the following so the original data gets freed to save memory
freqs_weirdunits = np.array(data[:,0], copy=True)
k0s = np.array(data[:,2], copy=True)
ks = np.array(data[:,3:4], copy=True)
ks = np.array(data[:,3:5], copy=True)
freqs = freqs_weirdunits * c / um
if fatForm: #indices: (...,) destparticle, desttype, desty, srcparticle, srctype, srcy
Ws2 = np.moveaxis(Ws, [-5,-4,-3,-2,-1], [-4,-2,-5,-3,-1] )