Skip to content

Commit

Permalink
Additional fix for #1, complex numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Lassner committed Dec 8, 2020
1 parent 9895ec2 commit fcb2ee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pymp/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def array(shape, dtype=_np.float64, autolock=False):
# because they're only partially supported. Instead, create a byte ctypes
# array of the right size and use a view of the appropriate datatype.
shared_arr = _multiprocessing.Array(
"b", int(_np.prod(shape) * dtype.alignment), lock=autolock
"b", int(_np.prod(shape) * dtype.itemsize), lock=autolock
)
with _warnings.catch_warnings():
# For more information on why this is necessary, see
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""
from setuptools import find_packages, setup

VERSION = "0.4.2"
VERSION = "0.4.3"

setup(
name="pymp-pypi",
Expand Down

0 comments on commit fcb2ee8

Please sign in to comment.