qcodes/instrument_drivers/Keysight/keysightb1500/KeysightB1500_module.py
def is_enabled(self) -> bool:
        """
        Check if channels of this module are enabled.

        Returns:
            `True` if *all* channels of this module are enabled. `False`,
            otherwise.
        """
        # TODO If a module has multiple channels, and only one is enabled, then
        # this will return false, which is probably not desirable.
        # Also check the TODO item at the top about InstrumentChannel per
        # Channel instead of per Module.
        msg = (MessageBuilder()
               .lrn_query(constants.LRN.Type.OUTPUT_SWITCH)
               .message
               )
        response = self.ask(msg)
        activated_channels = re.sub(r"[^,\d]", "", response).split(",")

        is_enabled = set(self.channels).issubset(
            int(x) for x in activated_channels if x != ''
        )
        return is_enabled

        Check if channels of this module are enabled.

        Returns:
            `True` if *all* channels of this module are enabled. `False`,
            otherwise.
        
Check if channels of this module are enabled.
Check if channels of this module are enabled .
def is_enabled(self) -> bool:
        msg = (MessageBuilder()
               .lrn_query(constants.LRN.Type.OUTPUT_SWITCH)
               .message
               )
        response = self.ask(msg)
        activated_channels = re.sub(r"[^,\d]", "", response).split(",")
        is_enabled = set(self.channels).issubset(
            int(x) for x in activated_channels if x != ''
        )
        return is_enabled
def is_enabled ( self ) -> bool : msg = ( MessageBuilder ( ) . lrn_query ( constants . LRN . Type . OUTPUT_SWITCH ) . message ) response = self . ask ( msg ) activated_channels = re . sub ( r"[^,\d]" , "" , response ) . split ( "," ) is_enabled = set ( self . channels ) . issubset ( int ( x ) for x in activated_channels if x != '' ) return is_enabled
Check if channels of this module are enabled.
Check if channels of this module are enabled .
"""
        Check if channels of this module are enabled.

        Returns:
            `True` if *all* channels of this module are enabled. `False`,
            otherwise.
        """ # TODO If a module has multiple channels, and only one is enabled, then # this will return false, which is probably not desirable. # Also check the TODO item at the top about InstrumentChannel per # Channel instead of per Module.
`True` if *all* channels of this module are enabled. `False`,
otherwise.
` True ` if * all * channels of this module are enabled . ` False ` otherwise .
self