update pyproject.toml
This commit is contained in:
@@ -54,7 +54,7 @@ class SharedArray(np.ndarray):
|
|||||||
if isinstance(shm, str):
|
if isinstance(shm, str):
|
||||||
shm = SharedMemory(shm)
|
shm = SharedMemory(shm)
|
||||||
elif shm is None:
|
elif shm is None:
|
||||||
shm = SharedMemory(create=True, size=np.prod(shape) * np.dtype(dtype).itemsize) # type: ignore
|
shm = SharedMemory(create=True, size=int(np.prod(shape) * np.dtype(dtype).itemsize)) # type: ignore
|
||||||
new = super().__new__(cls, shape, dtype, shm.buf, offset, strides, order)
|
new = super().__new__(cls, shape, dtype, shm.buf, offset, strides, order)
|
||||||
new.shm = shm
|
new.shm = shm
|
||||||
return new
|
return new
|
||||||
|
|||||||
Reference in New Issue
Block a user