qcodes/instrument_drivers/stahl/stahl.py
def _get_lock_status(self) -> bool:
        """
        A lock occurs when an output is overloaded

        Return:
            lock_status: True when locked
        """
        send_string = f"{self.parent.identifier} LOCK"

        response = self.parent.visa_handle.query_binary_values(
            send_string,
            datatype='B',
            header_fmt="empty"
        )

        channel_index = self._channel_number - 1
        channel_group = channel_index // 4
        lock_code_group = response[channel_group]
        return format(lock_code_group, "b")[channel_index % 4 + 1] == "1"

        A lock occurs when an output is overloaded

        Return:
            lock_status: True when locked
        
A lock occurs when an output is overloaded
Return:
lock_status: True when locked
A lock occurs when an output is overloaded Return : lock_status : True when locked
def _get_lock_status(self) -> bool:
        send_string = f"{self.parent.identifier} LOCK"
        response = self.parent.visa_handle.query_binary_values(
            send_string,
            datatype='B',
            header_fmt="empty"
        )
        channel_index = self._channel_number - 1
        channel_group = channel_index // 4
        lock_code_group = response[channel_group]
        return format(lock_code_group, "b")[channel_index % 4 + 1] == "1"
def _get_lock_status ( self ) -> bool : send_string = f"{self.parent.identifier} LOCK" response = self . parent . visa_handle . query_binary_values ( send_string , datatype = 'B' , header_fmt = "empty" ) channel_index = self . _channel_number - 1 channel_group = channel_index // 4 lock_code_group = response [ channel_group ] return format ( lock_code_group , "b" ) [ channel_index % 4 + 1 ] == "1"
A lock occurs when an output is overloaded
Return:
lock_status: True when locked
A lock occurs when an output is overloaded Return : lock_status : True when locked
"""
        A lock occurs when an output is overloaded

        Return:
            lock_status: True when locked
        """
self