qcodes/instrument_drivers/tektronix/Keithley_2000.py
def parse_output_string(s: str) -> str:
    """ Parses and cleans string outputs of the Keithley """
    # 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()

    # Convert some results to a better readable version
    conversions = {
        'mov': 'moving',
        'rep': 'repeat',
    }

    if s in conversions.keys():
        s = conversions[s]

    return s
 Parses and cleans string outputs of the Keithley 
Parses and cleans string outputs of the Keithley
Parses and cleans string outputs of the Keithley
def parse_output_string(s: str) -> str:
    s = s.strip()
    if (s[0] == s[-1]) and s.startswith(("'", '"')):
        s = s[1:-1]
    s = s.lower()
    conversions = {
        'mov': 'moving',
        'rep': 'repeat',
    }
    if s in conversions.keys():
        s = conversions[s]
    return s
def parse_output_string ( s : str ) -> str : s = s . strip ( ) if ( s [ 0 ] == s [ - 1 ] ) and s . startswith ( ( "'" , '"' ) ) : s = s [ 1 : - 1 ] s = s . lower ( ) conversions = { 'mov' : 'moving' , 'rep' : 'repeat' , } if s in conversions . keys ( ) : s = conversions [ s ] return s
Parses and cleans string outputs of the Keithley
Parses and cleans string outputs of the Keithley
""" Parses and cleans string outputs of the Keithley """ # Remove surrounding whitespace and newline characters # Remove surrounding quotes # Convert some results to a better readable version
s
str