exopy_hqc_legacy/instruments/starters/legacy_starter.py
def check_infos(self, driver_cls, connection, settings):
        """Attempt to open the connection to the instrument.

        """
        c = self.format_connection_infos(connection)
        c.update(settings)
        driver = None
        try:
            driver = driver_cls(c)
            res = driver.connected
        except Exception:
            return False, format_exc()
        finally:
            if driver is not None:
                driver.close_connection()
        return res, ('Instrument does not appear to be connected but no '
                     'exception was raised.')
Attempt to open the connection to the instrument.

        
Attempt to open the connection to the instrument.
Attempt to open the connection to the instrument .
def check_infos(self, driver_cls, connection, settings):
        c = self.format_connection_infos(connection)
        c.update(settings)
        driver = None
        try:
            driver = driver_cls(c)
            res = driver.connected
        except Exception:
            return False, format_exc()
        finally:
            if driver is not None:
                driver.close_connection()
        return res, ('Instrument does not appear to be connected but no '
                     'exception was raised.')
def check_infos ( self , driver_cls , connection , settings ) : c = self . format_connection_infos ( connection ) c . update ( settings ) driver = None try : driver = driver_cls ( c ) res = driver . connected except Exception : return False , format_exc ( ) finally : if driver is not None : driver . close_connection ( ) return res , ( 'Instrument does not appear to be connected but no ' 'exception was raised.' )
Attempt to open the connection to the instrument.
Attempt to open the connection to the instrument .
"""Attempt to open the connection to the instrument.

        """
self
driver_cls
connection
settings