diff --git a/qcodes/instrument_drivers/Keysight/keysightb1500/KeysightB1500_module.py b/qcodes/instrument_drivers/Keysight/keysightb1500/KeysightB1500_module.py index 48583c34435..47e81dc0260 100644 --- a/qcodes/instrument_drivers/Keysight/keysightb1500/KeysightB1500_module.py +++ b/qcodes/instrument_drivers/Keysight/keysightb1500/KeysightB1500_module.py @@ -249,6 +249,6 @@ def is_enabled(self) -> bool: activated_channels = re.sub(r"[^,\d]", "", response).split(",") is_enabled = set(self.channels).issubset( - int(x) for x in activated_channels if x is not '' + int(x) for x in activated_channels if x != '' ) return is_enabled