fix k loading in loadWfile
Former-commit-id: 93cc473f2bfd4229a5290ede85b3cd4b78b50694
This commit is contained in:
parent
6049c8425f
commit
7c55453287
|
@ -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
|
# maybe TODO copy the following so the original data gets freed to save memory
|
||||||
freqs_weirdunits = np.array(data[:,0], copy=True)
|
freqs_weirdunits = np.array(data[:,0], copy=True)
|
||||||
k0s = np.array(data[:,2], 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
|
freqs = freqs_weirdunits * c / um
|
||||||
if fatForm: #indices: (...,) destparticle, desttype, desty, srcparticle, srctype, srcy
|
if fatForm: #indices: (...,) destparticle, desttype, desty, srcparticle, srctype, srcy
|
||||||
Ws2 = np.moveaxis(Ws, [-5,-4,-3,-2,-1], [-4,-2,-5,-3,-1] )
|
Ws2 = np.moveaxis(Ws, [-5,-4,-3,-2,-1], [-4,-2,-5,-3,-1] )
|
||||||
|
|
Loading…
Reference in New Issue