qcodes/instrument_drivers/tektronix/Keithley_3706A.py
def _connect_or_disconnect_column_to_rows(self, action: str,
                                              slot_id: int, column_id: int,
                                              rows: List[int]) -> List[str]:
        """
        A private function that connects (disconnects) given rows
        to (from) a column of a slot and opens (closes) the formed channels.
        """
        if action not in ["connect", "disconnect"]:
            raise ValueError("The action should be identified as either "
                             "'connect' or 'disconnect'.")
        slots = self._get_slot_ids()
        slot = str(slot_id)
        if slot not in slots:
            raise UnknownOrEmptySlot("Please provide a valid slot identifier. "
                                     f'Available slots are {slots}.')
        column = []
        if column_id < 10:
            column.append('0' + str(column_id))
        else:
            column.append(str(column_id))
        rows_list = [str(x) for x in rows]
        channels_to_connect_or_disconnect = []
        for element in itertools.product(slot, rows_list, column):
            channels_to_connect_or_disconnect.append(''.join(element))
        for channel in channels_to_connect_or_disconnect:
            if action == "connect":
                self.open_channel(channel)
            else:
                self.close_channel(channel)
        return channels_to_connect_or_disconnect

        A private function that connects (disconnects) given rows
        to (from) a column of a slot and opens (closes) the formed channels.
        
A private function that connects (disconnects) given rows
to (from) a column of a slot and opens (closes) the formed channels.
A private function that connects ( disconnects ) given rows to ( from ) a column of a slot and opens ( closes ) the formed channels .
def _connect_or_disconnect_column_to_rows(self, action: str,
                                              slot_id: int, column_id: int,
                                              rows: List[int]) -> List[str]:
        if action not in ["connect", "disconnect"]:
            raise ValueError("The action should be identified as either "
                             "'connect' or 'disconnect'.")
        slots = self._get_slot_ids()
        slot = str(slot_id)
        if slot not in slots:
            raise UnknownOrEmptySlot("Please provide a valid slot identifier. "
                                     f'Available slots are {slots}.')
        column = []
        if column_id < 10:
            column.append('0' + str(column_id))
        else:
            column.append(str(column_id))
        rows_list = [str(x) for x in rows]
        channels_to_connect_or_disconnect = []
        for element in itertools.product(slot, rows_list, column):
            channels_to_connect_or_disconnect.append(''.join(element))
        for channel in channels_to_connect_or_disconnect:
            if action == "connect":
                self.open_channel(channel)
            else:
                self.close_channel(channel)
        return channels_to_connect_or_disconnect
def _connect_or_disconnect_column_to_rows ( self , action : str , slot_id : int , column_id : int , rows : List [ int ] ) -> List [ str ] : if action not in [ "connect" , "disconnect" ] : raise ValueError ( "The action should be identified as either " "'connect' or 'disconnect'." ) slots = self . _get_slot_ids ( ) slot = str ( slot_id ) if slot not in slots : raise UnknownOrEmptySlot ( "Please provide a valid slot identifier. " f'Available slots are {slots}.' ) column = [ ] if column_id < 10 : column . append ( '0' + str ( column_id ) ) else : column . append ( str ( column_id ) ) rows_list = [ str ( x ) for x in rows ] channels_to_connect_or_disconnect = [ ] for element in itertools . product ( slot , rows_list , column ) : channels_to_connect_or_disconnect . append ( '' . join ( element ) ) for channel in channels_to_connect_or_disconnect : if action == "connect" : self . open_channel ( channel ) else : self . close_channel ( channel ) return channels_to_connect_or_disconnect
A private function that connects (disconnects) given rows
to (from) a column of a slot and opens (closes) the formed channels.
A private function that connects ( disconnects ) given rows to ( from ) a column of a slot and opens ( closes ) the formed channels .
"""
        A private function that connects (disconnects) given rows
        to (from) a column of a slot and opens (closes) the formed channels.
        """
self
action
str
slot_id
int
column_id
int
rows
List[int]