Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def connect(self, **params):
self._microscope = TemScripting.Microscope()
self._microscope.Connect()
self._acq = self._microscope.m_temScripting.Acquisition
self._proj = self._microscope.m_temScripting.Projection
self._ill = self._microscope.m_temScripting.Illumination
self._detector = self._acq.Detectors[0]
self._microscope.m_temScripting.Acquisition.AddAcqDevice(self._detector)
self._connected = True