import re


def parsefloat(string):
    """ Robustly parse floats in files, such as:
    '1.234(5)' = 1.234, note that it means 1.234+/-0.005
    """
    string = float(re.sub(r'\([^)]*\)', '', string))
    return float(string)