From ad563aaef216f9333b037194f1282cd38c4a642f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Thu, 16 Feb 2017 00:59:21 +0000 Subject: [PATCH] Fix array indices Former-commit-id: f959fa55b001bd1ed3e175fed023ecad4c7008e7 --- misc/dispersion-SVD.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/dispersion-SVD.py b/misc/dispersion-SVD.py index fab46b2..2deb459 100755 --- a/misc/dispersion-SVD.py +++ b/misc/dispersion-SVD.py @@ -380,11 +380,11 @@ for trfile in os.scandir(translations_dir): leftmatrixlist_TM = leftmatrixlist_s[np.ix_(np.arange(leftmatrixlist_s.shape[0]),TMč,TMč)] svarr = np.linalg.svd(leftmatrixlist_TE, compute_uv=False) argsortlist = np.argsort(svarr, axis=-1)[...,:svn] - minsvTElist[nnlist] = svarr[argsortlist] + minsvTElist[nnlist] = svarr[...,argsortlist] #minsvTElist[nnlist] = np.amin(np.linalg.svd(leftmatrixlist_TE, compute_uv=False), axis=-1) svarr = np.linalg.svd(leftmatrixlist_TM, compute_uv=False) argsortlist = np.argsort(svarr, axis=-1)[...,:svn] - minsvTMlist[nnlist] = svarr[argsortlist] + minsvTMlist[nnlist] = svarr[...,argsortlist] #minsvTMlist[nnlist] = np.amin(np.linalg.svd(leftmatrixlist_TM, compute_uv=False), axis=-1) minsvTMlistlist.append(minsvTMlist) minsvTElistlist.append(minsvTElist)