qcodes/instrument_drivers/Keysight/keysightb1500/KeysightB1500_module.py
def parse_module_query_response(response: str) -> Dict[SlotNr, str]:
    """
    Extract installed module information from the given string and return the
    information as a dictionary.

    Args:
        response: Response str to `UNT? 0` query.

    Returns:
        Dictionary from slot numbers to model name strings.
    """
    pattern = r";?(?P<model>\w+),(?P<revision>\d+)"

    moduleinfo = re.findall(pattern, response)

    return {
        SlotNr(slot_nr): model
        for slot_nr, (model, rev) in enumerate(moduleinfo, start=1)
        if model != "0"
    }

    Extract installed module information from the given string and return the
    information as a dictionary.

    Args:
        response: Response str to `UNT? 0` query.

    Returns:
        Dictionary from slot numbers to model name strings.
    
Extract installed module information from the given string and return the
information as a dictionary.
Extract installed module information from the given string and return the information as a dictionary .
def parse_module_query_response(response: str) -> Dict[SlotNr, str]:
    pattern = r";?(?P<model>\w+),(?P<revision>\d+)"
    moduleinfo = re.findall(pattern, response)
    return {
        SlotNr(slot_nr): model
        for slot_nr, (model, rev) in enumerate(moduleinfo, start=1)
        if model != "0"
    }
def parse_module_query_response ( response : str ) -> Dict [ SlotNr , str ] : pattern = r";?(?P<model>\w+),(?P<revision>\d+)" moduleinfo = re . findall ( pattern , response ) return { SlotNr ( slot_nr ) : model for slot_nr , ( model , rev ) in enumerate ( moduleinfo , start = 1 ) if model != "0" }
Extract installed module information from the given string and return the
information as a dictionary.
Extract installed module information from the given string and return the information as a dictionary .
"""
    Extract installed module information from the given string and return the
    information as a dictionary.

    Args:
        response: Response str to `UNT? 0` query.

    Returns:
        Dictionary from slot numbers to model name strings.
    """
Dictionary from slot numbers to model name strings.
Dictionary from slot numbers to model name strings .
response
str
Response str to `UNT.
Response str to ` UNT .