From add6f1111b1e6d97cd332136ce509512455afaac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Thu, 18 May 2017 09:01:35 +0300 Subject: [PATCH] Fatal / forgotten imaginary unit Former-commit-id: b68b6dbee3fcdc57a2a772d5beac82584725ed59 --- misc/finitesqlatzsym-scatter.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/finitesqlatzsym-scatter.py b/misc/finitesqlatzsym-scatter.py index fc71c55..eeacee3 100755 --- a/misc/finitesqlatzsym-scatter.py +++ b/misc/finitesqlatzsym-scatter.py @@ -328,7 +328,7 @@ for action in actions: if math.isnan(klist[i,2]): continue kdir = klistdir[i] - phases = np.exp(np.sum(klist2d[i] * positions, axis=-1)) + phases = np.exp(np.sum(1j * klist2d[i] * positions, axis=-1)) if action == 0 or action is None: pq = np.array(qpms.plane_pq_y(lMax, kdir, xu)).ravel()[TEč] * phases[:, nx] xresult[i] = scat.scatter_partial(0, pq) diff --git a/setup.py b/setup.py index c696a9a..feac6ff 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ qpms_c = Extension('qpms_c', ) setup(name='qpms', - version = "0.2.13", + version = "0.2.14", packages=['qpms'], # setup_requires=['setuptools_cython'], install_requires=['cython>=0.21','quaternion','spherical_functions','py_gmm'],