Fatal / forgotten imaginary unit
Former-commit-id: b68b6dbee3fcdc57a2a772d5beac82584725ed59
This commit is contained in:
parent
63e6a85e15
commit
add6f1111b
|
@ -328,7 +328,7 @@ for action in actions:
|
||||||
if math.isnan(klist[i,2]):
|
if math.isnan(klist[i,2]):
|
||||||
continue
|
continue
|
||||||
kdir = klistdir[i]
|
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:
|
if action == 0 or action is None:
|
||||||
pq = np.array(qpms.plane_pq_y(lMax, kdir, xu)).ravel()[TEč] * phases[:, nx]
|
pq = np.array(qpms.plane_pq_y(lMax, kdir, xu)).ravel()[TEč] * phases[:, nx]
|
||||||
xresult[i] = scat.scatter_partial(0, pq)
|
xresult[i] = scat.scatter_partial(0, pq)
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -34,7 +34,7 @@ qpms_c = Extension('qpms_c',
|
||||||
)
|
)
|
||||||
|
|
||||||
setup(name='qpms',
|
setup(name='qpms',
|
||||||
version = "0.2.13",
|
version = "0.2.14",
|
||||||
packages=['qpms'],
|
packages=['qpms'],
|
||||||
# setup_requires=['setuptools_cython'],
|
# setup_requires=['setuptools_cython'],
|
||||||
install_requires=['cython>=0.21','quaternion','spherical_functions','py_gmm'],
|
install_requires=['cython>=0.21','quaternion','spherical_functions','py_gmm'],
|
||||||
|
|
Loading…
Reference in New Issue