qcodes/instrument_drivers/Keysight/keysightb1500/KeysightB1500_module.py
def parse_spot_measurement_response(response: str) -> SpotResponse:
    """
    Extract measured value and accompanying metadata from the string
    and return them as a dictionary.

    Args:
        response: Response str to spot measurement query.

    Returns:
        Dictionary with measured value and associated metadata (e.g.
        timestamp, channel number, etc.)
    """
    match = re.match(_pattern, response)
    if match is None:
        raise ValueError(f"{response!r} didn't match {_pattern!r} pattern")

    dd = match.groupdict()

    d = SpotResponse(
        value=_convert_to_nan_if_dummy_value(float(dd["value"])),
        status=MeasurementStatus[dd["status"]],
        channel=ChannelName[dd["channel"]],
        dtype=dd["dtype"]
    )

    return d

    Extract measured value and accompanying metadata from the string
    and return them as a dictionary.

    Args:
        response: Response str to spot measurement query.

    Returns:
        Dictionary with measured value and associated metadata (e.g.
        timestamp, channel number, etc.)
    
Extract measured value and accompanying metadata from the string
and return them as a dictionary.
Extract measured value and accompanying metadata from the string and return them as a dictionary .
def parse_spot_measurement_response(response: str) -> SpotResponse:
    match = re.match(_pattern, response)
    if match is None:
        raise ValueError(f"{response!r} didn't match {_pattern!r} pattern")
    dd = match.groupdict()
    d = SpotResponse(
        value=_convert_to_nan_if_dummy_value(float(dd["value"])),
        status=MeasurementStatus[dd["status"]],
        channel=ChannelName[dd["channel"]],
        dtype=dd["dtype"]
    )
    return d
def parse_spot_measurement_response ( response : str ) -> SpotResponse : match = re . match ( _pattern , response ) if match is None : raise ValueError ( f"{response!r} didn't match {_pattern!r} pattern" ) dd = match . groupdict ( ) d = SpotResponse ( value = _convert_to_nan_if_dummy_value ( float ( dd [ "value" ] ) ) , status = MeasurementStatus [ dd [ "status" ] ] , channel = ChannelName [ dd [ "channel" ] ] , dtype = dd [ "dtype" ] ) return d
Extract measured value and accompanying metadata from the string
and return them as a dictionary.
Extract measured value and accompanying metadata from the string and return them as a dictionary .
"""
    Extract measured value and accompanying metadata from the string
    and return them as a dictionary.

    Args:
        response: Response str to spot measurement query.

    Returns:
        Dictionary with measured value and associated metadata (e.g.
        timestamp, channel number, etc.)
    """
Dictionary with measured value and associated metadata
Dictionary with measured value and associated metadata
response
str
Response str to spot measurement query.
Response str to spot measurement query .