Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def action_on_connect(self):
#
self._iam = self.harvester_core.create_image_acquisition_manager(
self.device_list.currentIndex()
)
if not self._iam:
# The device is not available.
return
#
self.iam.thread_image_acquisition = PyQtThread(
parent=self, mutex=self.mutex
)
self.iam.thread_statistics_measurement = PyQtThread(
parent=self, mutex=self.mutex
)
self.iam.updated_statistics = self._signal_update_statistics
self.iam.signal_stop_image_acquisition = self._signal_stop_image_acquisition
try:
if self.iam.device.node_map:
self._widget_attribute_controller = \
AttributeController(
self.iam.device.node_map,
parent=self
)
def action_on_connect(self):
#
self._iam = self.harvester_core.create_image_acquisition_manager(
self.device_list.currentIndex()
)
if not self._iam:
# The device is not available.
return
#
self.iam.thread_image_acquisition = PyQtThread(
parent=self, mutex=self.mutex
)
self.iam.thread_statistics_measurement = PyQtThread(
parent=self, mutex=self.mutex
)
self.iam.updated_statistics = self._signal_update_statistics
self.iam.signal_stop_image_acquisition = self._signal_stop_image_acquisition
try:
if self.iam.device.node_map:
self._widget_attribute_controller = \
AttributeController(
self.iam.device.node_map,
parent=self
)
except AttributeError:
pass
def action_on_connect(self):
#
self._iam = self.harvester_core.create_image_acquisition_manager(
self.device_list.currentIndex()
)
if not self._iam:
# The device is not available.
return
#
self.iam.thread_image_acquisition = PyQtThread(
parent=self, mutex=self.mutex
)
self.iam.thread_statistics_measurement = PyQtThread(
parent=self, mutex=self.mutex
)
self.iam.updated_statistics = self._signal_update_statistics
self.iam.signal_stop_image_acquisition = self._signal_stop_image_acquisition
try:
if self.iam.device.node_map:
self._widget_attribute_controller = \
AttributeController(
self.iam.device.node_map,
parent=self
)
def action_on_connect(self):
#
self._iam = self.harvester_core.create_image_acquisition_manager(
self.device_list.currentIndex()
)
if not self._iam:
# The device is not available.
return
#
self.iam.thread_image_acquisition = PyQtThread(
parent=self, mutex=self.mutex
)
self.iam.thread_statistics_measurement = PyQtThread(
parent=self, mutex=self.mutex
)
self.iam.updated_statistics = self._signal_update_statistics
self.iam.signal_stop_image_acquisition = self._signal_stop_image_acquisition
try:
if self.iam.device.node_map:
self._widget_attribute_controller = \
AttributeController(
self.iam.device.node_map,
parent=self
)
except AttributeError:
pass