Skip to content

Commit 877c7b5

Browse files
committed
XimeaCamera._fetch_data: avoid calling xiapi.Image.get_image_data_numpy twice
We already have done the conversion of the data in the Image object to numpy once, so don't do it twice.
1 parent 9738638 commit 877c7b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

microscope/cameras/ximea.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _fetch_data(self):
5959
_logger.info('Sending image')
6060
if trigger_type == 'XI_TRG_SOFTWARE':
6161
self._triggered = False
62-
return self.img.get_image_data_numpy()
62+
return data
6363
except Exception as err:
6464
if getattr(err, 'status', None) == 10:
6565
# This is a Timeout error

0 commit comments

Comments
 (0)