qcodes/instrument_drivers/rigol/DG4000.py
def parse_string_output(s: str) -> Union[float, str]:
    """ Parse an output of the VISA instrument into either text of a number """
    s = clean_string(s)

    # prevent float() from parsing 'infinity' into a float
    if s == 'infinity':
        return s

    # If it is a number; parse it
    if is_number(s):
        return float(s)

    return s
 Parse an output of the VISA instrument into either text of a number 
Parse an output of the VISA instrument into either text of a number
Parse an output of the VISA instrument into either text of a number
def parse_string_output(s: str) -> Union[float, str]:
    s = clean_string(s)
    if s == 'infinity':
        return s
    if is_number(s):
        return float(s)
    return s
def parse_string_output ( s : str ) -> Union [ float , str ] : s = clean_string ( s ) if s == 'infinity' : return s if is_number ( s ) : return float ( s ) return s
Parse an output of the VISA instrument into either text of a number
Parse an output of the VISA instrument into either text of a number
""" Parse an output of the VISA instrument into either text of a number """ # prevent float() from parsing 'infinity' into a float # If it is a number; parse it
s
str