Skip to content

Commit f2a9fd9

Browse files
Merged in display-acquired-images (pull request #88)
IMAQdxCamera: Send acquired images to the parent for display at the end of the shot.
2 parents fde826d + c5cebe9 commit f2a9fd9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

IMAQdxCamera/blacs_workers.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,14 @@ def transition_to_manual(self):
478478
dset.attrs['IMAGE_SUBCLASS'] = np.string_('IMAGE_GRAYSCALE')
479479
dset.attrs['IMAGE_WHITE_IS_ZERO'] = np.uint8(0)
480480

481+
# If the images are all the same shape, send them to the GUI for display:
482+
try:
483+
image_block = np.stack(self.images)
484+
except ValueError:
485+
print("Cannot display images in the GUI, they are not all the same shape")
486+
else:
487+
self._send_image_to_parent(image_block)
488+
481489
self.images = None
482490
self.n_images = None
483491
self.attributes_to_save = None

0 commit comments

Comments
 (0)