From 7c5545328710d8fc47cff33eccf3ee39ce326b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Thu, 17 May 2018 20:15:08 +0300 Subject: [PATCH] fix k loading in loadWfile Former-commit-id: 93cc473f2bfd4229a5290ede85b3cd4b78b50694 --- qpms/qpms_p.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qpms/qpms_p.py b/qpms/qpms_p.py index 63d61ae..1cbedf4 100644 --- a/qpms/qpms_p.py +++ b/qpms/qpms_p.py @@ -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] )