Skip to content

Commit

Permalink
fix windows error for shm
Browse files Browse the repository at this point in the history
  • Loading branch information
jonwright authored Feb 18, 2025
1 parent 53147d3 commit 978d74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImageD11/sinograms/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(self, ary=None, shape=None, dtype=None, shmname=None, fill=None):
self.nbytes = np.prod(shape) * np.dtype(dtype).itemsize

if shmname is None:
self.shm = shared_memory.SharedMemory(create=True, size=self.nbytes)
self.shm = shared_memory.SharedMemory(create=True, size=int(self.nbytes))
self.creator = True
else:
self.shm = shared_memory.SharedMemory(create=False, name=shmname)
Expand Down

0 comments on commit 978d74d

Please sign in to comment.