qcodes/instrument_drivers/Keysight/keysight_34980a.py
def _system_slots_info(self) -> Dict[int, Dict[str, str]]:
        """
        the command SYST:CTYP? returns the following:
        Agilent Technologies,<Model Number>,<Serial Number>,<Firmware Rev>
        where <Model Number> is '0' if there is no module connected to the
        given slot

        Returns:
            a dictionary, with slot numbers as the keys, and vendor/model/
            serial/firmware dictionaries as the values
        """
        slots_dict = {}
        keys = ['vendor', 'model', 'serial', 'firmware']
        for i in range(1, self._total_slot+1):
            identity = self.ask(f'SYST:CTYP? {i}').strip('"').split(',')
            if identity[1] != '0':
                slots_dict[i] = dict(zip(keys, identity))
        return slots_dict

        the command SYST:CTYP? returns the following:
        Agilent Technologies,<Model Number>,<Serial Number>,<Firmware Rev>
        where <Model Number> is '0' if there is no module connected to the
        given slot

        Returns:
            a dictionary, with slot numbers as the keys, and vendor/model/
            serial/firmware dictionaries as the values
        
the command SYST:CTYP. returns the following:
Agilent Technologies,,,
where  is '0' if there is no module connected to the
given slot
the command SYST : CTYP . returns the following : Agilent Technologies where is ' 0 ' if there is no module connected to the given slot
def _system_slots_info(self) -> Dict[int, Dict[str, str]]:
        slots_dict = {}
        keys = ['vendor', 'model', 'serial', 'firmware']
        for i in range(1, self._total_slot+1):
            identity = self.ask(f'SYST:CTYP? {i}').strip('"').split(',')
            if identity[1] != '0':
                slots_dict[i] = dict(zip(keys, identity))
        return slots_dict
def _system_slots_info ( self ) -> Dict [ int , Dict [ str , str ] ] : slots_dict = { } keys = [ 'vendor' , 'model' , 'serial' , 'firmware' ] for i in range ( 1 , self . _total_slot + 1 ) : identity = self . ask ( f'SYST:CTYP? {i}' ) . strip ( '"' ) . split ( ',' ) if identity [ 1 ] != '0' : slots_dict [ i ] = dict ( zip ( keys , identity ) ) return slots_dict
the command SYST:CTYP?
the command SYST : CTYP?
"""
        the command SYST:CTYP? returns the following:
        Agilent Technologies,<Model Number>,<Serial Number>,<Firmware Rev>
        where <Model Number> is '0' if there is no module connected to the
        given slot

        Returns:
            a dictionary, with slot numbers as the keys, and vendor/model/
            serial/firmware dictionaries as the values
        """
a dictionary, with slot numbers as the keys, and vendor/model
serial/firmware dictionaries as the values
a dictionary with slot numbers as the keys and vendor / model serial / firmware dictionaries as the values
self