Skip to content

Commit

Permalink
new memory for new images in thorcam
Browse files Browse the repository at this point in the history
  • Loading branch information
ichristen committed Nov 3, 2022
1 parent 4d50344 commit a375000
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion slmsuite/hardware/cameras/thorlabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import os
import sys
import time
import numpy as np

from slmsuite.hardware.cameras.camera import Camera

Expand Down Expand Up @@ -371,7 +372,7 @@ def get_image(self, timeout_s=1, trigger=True, grab=True):
while time.time() - t < timeout_s and frame is None:
frame = self.cam.get_pending_frame_or_null()

ret = self.transform(frame.image_buffer) if frame is not None else None
ret = self.transform(np.copy(frame.image_buffer)) if frame is not None else None

return ret

Expand Down
1 change: 0 additions & 1 deletion slmsuite/holography/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# A specifically named file so that the PhC-SLM folder is treated as a python package

0 comments on commit a375000

Please sign in to comment.