qcodes/tests/drivers/test_tektronix_AWG70000A.py
def strip_outer_tags(sml: str) -> str:
    """
    Helper function to strip the outer tags of an SML file so that it
    complies with the schema provided by tektronix
    """
    # make function idempotent
    if not sml[1:9] == 'DataFile':
        print('Incorrect file format or outer tags '
              'already stripped')
        return sml

    ind1 = sml.find('>\r\n')
    sml = sml[ind1+3:]  # strip off the opening DataFile tag
    sml = sml[:-24]  # remove the </Setup> and closing tag
    return sml

    Helper function to strip the outer tags of an SML file so that it
    complies with the schema provided by tektronix
    
Helper function to strip the outer tags of an SML file so that it
complies with the schema provided by tektronix
Helper function to strip the outer tags of an SML file so that it complies with the schema provided by tektronix
def strip_outer_tags(sml: str) -> str:
    if not sml[1:9] == 'DataFile':
        print('Incorrect file format or outer tags '
              'already stripped')
        return sml
    ind1 = sml.find('>\r\n')
    sml = sml[ind1+3:]  
    sml = sml[:-24]  
    return sml
def strip_outer_tags ( sml : str ) -> str : if not sml [ 1 : 9 ] == 'DataFile' : print ( 'Incorrect file format or outer tags ' 'already stripped' ) return sml ind1 = sml . find ( '>\r\n' ) sml = sml [ ind1 + 3 : ] sml = sml [ : - 24 ] return sml
Helper function to strip the outer tags of an SML file so that it
complies with the schema provided by tektronix
Helper function to strip the outer tags of an SML file so that it complies with the schema provided by tektronix
"""
    Helper function to strip the outer tags of an SML file so that it
    complies with the schema provided by tektronix
    """ # make function idempotent # strip off the opening DataFile tag # remove the </Setup> and closing tag
sml
str