Fatal / forgotten imaginary unit

Former-commit-id: b68b6dbee3fcdc57a2a772d5beac82584725ed59
This commit is contained in:
Marek Nečada 2017-05-18 09:01:35 +03:00
parent 63e6a85e15
commit add6f1111b
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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'],