qcodes/instrument_drivers/tektronix/Keithley_3706A.py
def _warn_on_disengaged_interlocks(self, val: str) -> None:
        """
        Checks if backplance channels among the given specifiers can be
        energized dependening on respective hardware interlocks being
        engaged, and raises a warning for those backplane channels which
        cannot be energized.

        Args:
            val: A string representing the channels, channel ranges,
                backplane relays.
        """
        states = self.get_interlock_state()
        val_specifiers = val.split(",")
        for channel in val_specifiers:
            if self._is_backplane_channel(channel):
                slot = channel[0]
                interlock_state = [
                    state for state in states if state["slot_no"] == slot
                ][0]
                if interlock_state["state"] == "Interlock is disengaged":
                    warnings.warn(
                        f"The hardware interlock in Slot "
                        f'{interlock_state["slot_no"]} is disengaged. '
                        f"The analog backplane relay {channel} "
                        "cannot be energized.",
                        UserWarning,
                        2,
                    )

        Checks if backplance channels among the given specifiers can be
        energized dependening on respective hardware interlocks being
        engaged, and raises a warning for those backplane channels which
        cannot be energized.

        Args:
            val: A string representing the channels, channel ranges,
                backplane relays.
        
Checks if backplance channels among the given specifiers can be
energized dependening on respective hardware interlocks being
engaged, and raises a warning for those backplane channels which
cannot be energized.
Checks if backplance channels among the given specifiers can be energized dependening on respective hardware interlocks being engaged and raises a warning for those backplane channels which cannot be energized .
def _warn_on_disengaged_interlocks(self, val: str) -> None:
        states = self.get_interlock_state()
        val_specifiers = val.split(",")
        for channel in val_specifiers:
            if self._is_backplane_channel(channel):
                slot = channel[0]
                interlock_state = [
                    state for state in states if state["slot_no"] == slot
                ][0]
                if interlock_state["state"] == "Interlock is disengaged":
                    warnings.warn(
                        f"The hardware interlock in Slot "
                        f'{interlock_state["slot_no"]} is disengaged. '
                        f"The analog backplane relay {channel} "
                        "cannot be energized.",
                        UserWarning,
                        2,
                    )
def _warn_on_disengaged_interlocks ( self , val : str ) -> None : states = self . get_interlock_state ( ) val_specifiers = val . split ( "," ) for channel in val_specifiers : if self . _is_backplane_channel ( channel ) : slot = channel [ 0 ] interlock_state = [ state for state in states if state [ "slot_no" ] == slot ] [ 0 ] if interlock_state [ "state" ] == "Interlock is disengaged" : warnings . warn ( f"The hardware interlock in Slot " f'{interlock_state["slot_no"]} is disengaged. ' f"The analog backplane relay {channel} " "cannot be energized." , UserWarning , 2 , )
Checks if backplance channels among the given specifiers can be
energized dependening on respective hardware interlocks being
engaged, and raises a warning for those backplane channels which
cannot be energized.
Checks if backplance channels among the given specifiers can be energized dependening on respective hardware interlocks being engaged and raises a warning for those backplane channels which cannot be energized .
"""
        Checks if backplance channels among the given specifiers can be
        energized dependening on respective hardware interlocks being
        engaged, and raises a warning for those backplane channels which
        cannot be energized.

        Args:
            val: A string representing the channels, channel ranges,
                backplane relays.
        """
self
val
str
A string representing the channels, channel ranges,
backplane relays.
A string representing the channels channel ranges backplane relays .