qcodes/instrument_drivers/rigol/DG4000.py
def clean_string(s: str) -> str:
    """ Clean string outputs of a VISA instrument for further parsing """
    # Remove surrounding whitespace and newline characters
    s = s.strip()

    # Remove surrounding quotes
    if (s[0] == s[-1]) and s.startswith(("'", '"')):
        s = s[1:-1]

    s = s.lower()

    return s
 Clean string outputs of a VISA instrument for further parsing 
Clean string outputs of a VISA instrument for further parsing
Clean string outputs of a VISA instrument for further parsing
def clean_string(s: str) -> str:
    s = s.strip()
    if (s[0] == s[-1]) and s.startswith(("'", '"')):
        s = s[1:-1]
    s = s.lower()
    return s
def clean_string ( s : str ) -> str : s = s . strip ( ) if ( s [ 0 ] == s [ - 1 ] ) and s . startswith ( ( "'" , '"' ) ) : s = s [ 1 : - 1 ] s = s . lower ( ) return s
Clean string outputs of a VISA instrument for further parsing
Clean string outputs of a VISA instrument for further parsing
""" Clean string outputs of a VISA instrument for further parsing """ # Remove surrounding whitespace and newline characters # Remove surrounding quotes
s
str