Skip to content

Commit 6a5a7b9

Browse files
committed
When getting data from buffer, copy values instead of taking reference
1 parent f09cc73 commit 6a5a7b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/instamatic/camera/camera_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def get_data_from_shared_memory(self, name: str, shape: tuple, dtype: str, **kwa
196196
print(f'Retrieve data from buffer `{name}`')
197197

198198
buffer = self.buffers[name]
199-
data = buffer[:]
199+
data = buffer[:].copy()
200200

201201
return data
202202

0 commit comments

Comments
 (0)