def parse_spinsolve_par_line(line):
    """
    Parse lines in acqu.par and return a tuple (paramter name, parameter value)
    """
    line = line.strip()  # Drop newline
    name, value = line.split("=", maxsplit=1)  # Split at equal sign (and ignore further equals in attribute values)

    # remove spaces
    name = name.strip()
    value = value.strip()

    # Detect value type
    if value[0] == value[-1] == '"':  # String
        return name, str(value[1:-1])  # Drop quote marks
    if "." in value:  # Float
        return name, float(value)
    else:
        return name, int(value)