Loading noctua/config/devices.ini +3 −3 Original line number Diff line number Diff line Loading @@ -14,9 +14,9 @@ class = Stage node = MERCURY depends-on = pdu_stage ping-using = version pos_imaging = 1 pos_spectro = 68 pos_echelle = 110 pos_imaging = 0.04 pos_spectro = 68.0 pos_echelle = 110.0 [ao] module = stx Loading noctua/devices/mercury.py +1 −29 Original line number Diff line number Diff line Loading @@ -44,34 +44,6 @@ class Mercury(BaseDevice): self.pidevice = None # def _check_connection(self): # """ # Internal method to manage the context manager state. # Returns # ------- # GCSCommands # The active PI GCS commands instance. # """ # if self.pidevice is None: # self._gateway = PISerial(port=self.port, baudrate=self.baudrate) # # Internal management of the library context manager # gateway_instance = self._gateway.__enter__() # messages = GCSMessages(gateway_instance) # self.pidevice = GCSCommands(messages) # return self.pidevice # def __del__(self): # """ # Ensure the internal context manager is closed on destruction. # """ # if self._gateway is not None: # self._gateway.__exit__(None, None, None) def _check_connection(self): """ Internal method to manage the context managers state. Loading Loading
noctua/config/devices.ini +3 −3 Original line number Diff line number Diff line Loading @@ -14,9 +14,9 @@ class = Stage node = MERCURY depends-on = pdu_stage ping-using = version pos_imaging = 1 pos_spectro = 68 pos_echelle = 110 pos_imaging = 0.04 pos_spectro = 68.0 pos_echelle = 110.0 [ao] module = stx Loading
noctua/devices/mercury.py +1 −29 Original line number Diff line number Diff line Loading @@ -44,34 +44,6 @@ class Mercury(BaseDevice): self.pidevice = None # def _check_connection(self): # """ # Internal method to manage the context manager state. # Returns # ------- # GCSCommands # The active PI GCS commands instance. # """ # if self.pidevice is None: # self._gateway = PISerial(port=self.port, baudrate=self.baudrate) # # Internal management of the library context manager # gateway_instance = self._gateway.__enter__() # messages = GCSMessages(gateway_instance) # self.pidevice = GCSCommands(messages) # return self.pidevice # def __del__(self): # """ # Ensure the internal context manager is closed on destruction. # """ # if self._gateway is not None: # self._gateway.__exit__(None, None, None) def _check_connection(self): """ Internal method to manage the context managers state. Loading