qcodes/instrument_drivers/tektronix/AWGFileParser.py
def _unwrap(bites: bytes, fmt: str) -> Union[str, int, Tuple[Any, ...]]:
    """
    Helper function for interpreting the bytes from the awg file.

    Args:
        bites: a bytes object
        fmt: the format string (either 's', 'h' or 'd')

    """
    value: Union[str, int, Tuple[Any, ...]]
    if fmt == 's':
        value = bites[:-1].decode('ascii')
    elif fmt == 'ignore':
        value = 'Not read'
    else:
        value = struct.unpack('<'+fmt, bites)
        if len(value) == 1:
            value = value[0]

    return value

    Helper function for interpreting the bytes from the awg file.

    Args:
        bites: a bytes object
        fmt: the format string (either 's', 'h' or 'd')

    
Helper function for interpreting the bytes from the awg file.
Helper function for interpreting the bytes from the awg file .
def _unwrap(bites: bytes, fmt: str) -> Union[str, int, Tuple[Any, ...]]:
    value: Union[str, int, Tuple[Any, ...]]
    if fmt == 's':
        value = bites[:-1].decode('ascii')
    elif fmt == 'ignore':
        value = 'Not read'
    else:
        value = struct.unpack('<'+fmt, bites)
        if len(value) == 1:
            value = value[0]
    return value
def _unwrap ( bites : bytes , fmt : str ) -> Union [ str , int , Tuple [ Any , ... ] ] : value : Union [ str , int , Tuple [ Any , ... ] ] if fmt == 's' : value = bites [ : - 1 ] . decode ( 'ascii' ) elif fmt == 'ignore' : value = 'Not read' else : value = struct . unpack ( '<' + fmt , bites ) if len ( value ) == 1 : value = value [ 0 ] return value
Helper function for interpreting the bytes from the awg file.
Helper function for interpreting the bytes from the awg file .
"""
    Helper function for interpreting the bytes from the awg file.

    Args:
        bites: a bytes object
        fmt: the format string (either 's', 'h' or 'd')

    """
bites
bytes
a bytes object
a bytes object
fmt
str
the format string (either 's', 'h' or 'd')
the format string ( either ' s ' ' h ' or ' d ' )