qcodes/instrument_drivers/tektronix/AWGFileParser.py
def _getendingnumber(string: str) -> Tuple[int, str]:
    """
    Helper function to extract the last number of a string

    Args:
        string: A .awg field name, like SEQUENCE_JUMP_23

    Returns:
        The number and the shortened string,
        e.g. 'SEQUENCE_JUMP_23' -> (23, 'SEQUENCE_JUMP_')
    """

    num = ''

    for char in string[::-1]:
        if char.isdigit():
            num += char
        else:
            break

    return int(num[::-1]), string[:-len(num)]

    Helper function to extract the last number of a string

    Args:
        string: A .awg field name, like SEQUENCE_JUMP_23

    Returns:
        The number and the shortened string,
        e.g. 'SEQUENCE_JUMP_23' -> (23, 'SEQUENCE_JUMP_')
    
Helper function to extract the last number of a string
Helper function to extract the last number of a string
def _getendingnumber(string: str) -> Tuple[int, str]:
    num = ''
    for char in string[::-1]:
        if char.isdigit():
            num += char
        else:
            break
    return int(num[::-1]), string[:-len(num)]
def _getendingnumber ( string : str ) -> Tuple [ int , str ] : num = '' for char in string [ : : - 1 ] : if char . isdigit ( ) : num += char else : break return int ( num [ : : - 1 ] ) , string [ : - len ( num ) ]
Helper function to extract the last number of a string
Helper function to extract the last number of a string
"""
    Helper function to extract the last number of a string

    Args:
        string: A .awg field name, like SEQUENCE_JUMP_23

    Returns:
        The number and the shortened string,
        e.g. 'SEQUENCE_JUMP_23' -> (23, 'SEQUENCE_JUMP_')
    """
The number and the shortened string,
e.g.
The number and the shortened string e . g .
string
str
A .awg field name, like SEQUENCE_JUMP_23
A . awg field name like SEQUENCE_JUMP_23